Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int clickX = 0;
- int clickY = 0;
- void setup(){
- size(400,400);
- }
- void draw(){
- println("x= " + clickX + "Y = " + clickY);
- }
- void mouseClicked(){
- clickX = mouseX;
- clickY = mouseY;
- }
Advertisement
Add Comment
Please, Sign In to add comment