mouseMoved()
Example

Syntax
Description
This function is called every time the mouse moves and none of the mouse buttons is pressed.
Last updated

This function is called every time the mouse moves and none of the mouse buttons is pressed.
Last updated
def mouseMoved():
# do stuffdef setup():
createCanvas(300,300)
show = False
def draw():
global show
background(255, 79, 132)
fill(255, 164, 28)
stroke(44, 129, 237)
strokeWeight(10)
if show:
circle(150, 150, 150)
show = False
def mouseMoved():
global show
show = True