GSDP:GAM100/CProcessing/mouseY

From Inside
Jump to: navigation, search

mouseY

Description

The system variable mouseY always contains the current vertical coordinate of the mouse. This will track the position of the mouse anywhere on the screen, even if the window is in the background.

Example

void draw() 
{
  background(color(200, 200, 200, 255));
  line(20, mouseY, 80, mouseY);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>