mouseX - Version: 127

Examples

1
2
3
4
5
6
 
<br>void loop() { 
<br>   background(0);
<br>   line(mouseX, 20, mouseX, 80);
<br>}
<br>



Description

The system variable mouseX always contains the current horizontal coordinate of the mouse.

Related

mouseY




Edit History