Last active
January 7, 2020 21:58
-
-
Save lakesare/5c250576f022262ecc600d81987f75a8 to your computer and use it in GitHub Desktop.
Processing button class
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
Button myButton = new Button( | |
x, y, | |
buttonW, buttonH, | |
"Press me", | |
new Runnable() { public void run() { println("Hi babe"); } } | |
); | |
void setup() { | |
size(600, 600, P3D); | |
pixelDensity(2); | |
noFill(); | |
} | |
void draw() { | |
myButton.draw(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment