I am trying to change the angle of a line by sensing movement of the mouse, I use the following code but get no results, I used println() to monitor the values of X1 and X2 and the difference is always 0. I don't know much about processing or programming in general any help would appreciated! Thanks for your time and help!