I am new to Processing and I need help relating to the rotate() function. What I need is that a image is displayed at the cursor's coordinates and when the mouse is pressed, the image should rotate counterclockwise by 90 degrees at the cursor's coordinate itself. How to accomplish this? Also, I am currently confused as to what translate() does. Any explanation would help.
1