Name

mouseWheel()

Examples
background_color = 127

def setup(): 
    size(100, 100)

def draw(): 
    background(background_color)

def mouseWheel(event): 
    e = event.getCount()
    background_color += event.getCount()
    # keep value in range
    background_color = background_color % 255
Description
Syntax
Parameters
event
Related mouseX
mouseY
pmouseX
pmouseY
mousePressed
mousePressed()
mouseReleased()
mouseClicked()
mouseMoved()
mouseDragged()
mouseButton
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License