Last active
August 26, 2015 10:20
-
-
Save federico-pepe/adcd4ec3160d3d9923ca to your computer and use it in GitHub Desktop.
Eventi in Processing: mousePressed() e mouseReleased()
This file contains hidden or 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
| /* | |
| * Eventi mousePressed() e mouseReleased() | |
| * by Federico Pepe | |
| * http://blog.federicopepe.com | |
| */ | |
| void setup() { | |
| size(500, 500); | |
| background(255); | |
| } | |
| void draw() { | |
| } | |
| void mousePressed() { | |
| background(255, 0, 0); | |
| } | |
| void mouseReleased() { | |
| background(255); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment