Created
January 29, 2014 21:22
-
-
Save lmccart/8697477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mouse events - mousePressed(), mouseReleased(), mouseMoved(), mouseDragged() | |
// runs once each time unlike mousepressed | |
var gray = 0; | |
function setup() { | |
createGraphics(600, 400); | |
} | |
function draw() { | |
background(gray); | |
} | |
function mousePressed() { | |
gray += 20; | |
console.log(gray) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment