Created
September 8, 2015 14:19
-
-
Save slambert/43284ea53b629d5488cc to your computer and use it in GitHub Desktop.
This is an example for class about the things they have questions about today.
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
/* | |
Steve Lambert | |
September 8, 2015 | |
This is an example for class about the things | |
they have questions about today. | |
*/ | |
// this is a one line comment | |
void setup(){ // this is a comment on the setup | |
size(500,500); | |
println("Yay, I finished the setup with no errors!"); | |
} | |
void draw(){ | |
//println("now we're a drawin'"); | |
background(0); | |
fill(255,0,0); // red | |
rect(mouseX,mouseY,30,30); // left top square | |
fill(0,255,0); // green | |
rect(mouseX+35,mouseY,30,30); // right top square | |
fill(0,0,255); // blue | |
rect(mouseX,mouseY+35,30,30); // left bottom square | |
fill(#FF00FF); // green | |
rect(mouseX+35,mouseY+35,30,30); // right bottom square | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment