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