mouseX - Version: 128

Examples

1
2
3
4
void loop() { 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