How do I make this happen?
Is there a way for Processing to recognize which direction the mouse is traveling? I want something different to happen when the mouse is pressed depending on the general direction it’s going. I was thinking that maybe I had to make integers telling it, for example, if the only the mouseY coordinate is getting greater, to recognize that the mouse is traveling south. I was looking at the distance function to see if that would help me, but I’m not sure.
Please let me know how I can do this. Thanks!