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() |