| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### mouseX
Examples |  |
    void loop()
    {
      background(204);
      line(mouseX, 20, mouseX, 80);
    }
Description |  | The system variable mouseX always contains the current horizontal coordinate of the mouse.
Syntax |  |
    mouseX
Usage |  | Web & Application
Related |  | mouseY pmouseX pmouseY mousePressed mousePressed() mouseReleased() mouseMoved() mouseDragged()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |