Skip to content

Instantly share code, notes, and snippets.

@slambert
Created September 8, 2015 14:19
Show Gist options
  • Save slambert/43284ea53b629d5488cc to your computer and use it in GitHub Desktop.
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.
/*
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