and if they are the same, can i ask which order is processing doing?
is it:
1. translate(-10,5); 2. rotate(radians(15)); 3. translate(10,-5); 4. rect(0,0,10,10);
I am trying to implement a mouseDragged function such that the user can MOVE the image in either X axis or Y axis, depending on the direction the user drags the mouse.
However, due to the nature of mouseDragged Function, it is almost impossible to check whether the user is dragging in X or Y axis...
Can anyone advice me how to drag the image in a direction (X or Y) and not in both direction...
What i wish to do is to detect such that when user mouse Left click with and ALT key pressed, the program will do
A.
But i realised that when the ALT key has been released, when the user Left Click, the program still do
A, which is not what i want.