a port of the Processing Visualization Language
Name

mouseOver()

Examples
// Moving the mouse into and out of the canvas

// changes the background color



void setup() {

  size(200,200);

  background(10);

}



void draw() {}



void mouseOver() {

  background(50,80,140);

}



void mouseOut() {

  background(140,50,80);

}
Description The mouseOver() function is called when the mouse pointer moves over the sketch.
Syntax
mouseOver() { //statements }
Parameters
Usage Web
Related mouseX
mouseY
mouseButton
mousePressed()
mouseReleased()
mouseMoved()
mouseOut()
mouseScrolled()
mouseScroll()
mouseDragged()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub