< >
code notes: Event Design introduces important and powerful code for using mouse/trackpad and keyboard input.
design notes: Event Design introduces code that enables interactivity and user engagement.
code: mouseX and mouseYuser event: pointing
code: mouseX and mouseYuser event: pointing, with offset
code: mouseX and mouseYuser event: pointing, with easing
code: mouseX and mouseYuser event: mark making, with point
code: mouseX and mouseYuser event: mark making, with point, and random strokeWeight
code: pmouseX, pmouseY, mouseX, mouseYuser event: mark making, with line
code: pmouseX, pmouseY, mouseX, mouseYuser event: mark making, with line, and random strokeWeight
code: pmouseX, pmouseY, mouseX, mouseYuser event: mark making, with line, and abs strokeWeight
code: mouseIsPressed variableuser event: mark making, with line
code: mousePressed functionuser event: mark making, with point
code: mouseIsPressed variable and mousePressed functionuser event: mark making, and "erasing" the composition
code: keyIsPressed variableuser event: mark making, with ellipse
code: mouseIsPressed variable and keyIsPressed variableuser event: mark making, and "erasing" the composition
code: mouseIsPressed variable and keyPressed functionuser event: mark making, and "erasing" the composition
code: keyIsPressed variable, keyPressed function, key assignmentsuser event: keyboard control, background
code: keyIsPressed variable, keyPressed function, keyCodeuser event: keyboard control, background
code: keyIsPressed variable, mousePressed function, keyCodeuser event: keyboard control, line
code: mousePressed function, save fileuser event: generate graphic file
code: mouseX and mouseYuser event: mouse tracking, collision detection
code: mouseX and mouseYuser event: mouse tracking, collision detection, proximity
code: mouseX, mouseY, boolean variableuser event: mouse tracking, collision detection, in motion
code: boolean variable testuser event: change states/scenes
code: conditional if, else if, elseuser event: change states/scenes
code: linkuser event: link to a file or website