Mouse position: Difference between revisions

m
→‎{{header|Processing}}: adding some comments
(→‎{{header|Processing}}: Processing & Python mode)
m (→‎{{header|Processing}}: adding some comments)
Line 1,059:
 
void draw(){
// ellipse(mouseX, and mouseY, 5,provide the current mouse 5);position
ellipse(mouseX, mouseY, 5, 5); // graphic output example
println("x:" + mouseX + " y:" + mouseY);
}</lang>
 
Line 1,068 ⟶ 1,069:
 
def draw():
ellipse(# mouseX, and mouseY, 5,provide the current mouse 5)position
ellipse(mouseX, mouseY, 5, 5) # graphic output example
println("x:{} y:{}".format(mouseX, mouseY))</lang>
 
=={{header|Python}}==
 
Anonymous user