RosettaCodeData/Task/Mouse-position/Processing/mouse-position.processing

10 lines
212 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
void setup(){
size(640, 480);
}
void draw(){
// mouseX and mouseY provide the current mouse position
ellipse(mouseX, mouseY, 5, 5); // graphic output example
println("x:" + mouseX + " y:" + mouseY);
}