Skip to content

Instantly share code, notes, and snippets.

@slambert
Created February 16, 2017 15:18
Show Gist options
  • Save slambert/0288355c6c771f86454fb5cbb5df349b to your computer and use it in GitHub Desktop.
Save slambert/0288355c6c771f86454fb5cbb5df349b to your computer and use it in GitHub Desktop.
void setup() {
//fullScreen();
size(600, 600);
strokeWeight(5);
stroke(255,0,0);
}
void draw() {
background(0,245,245);
// From left to right, top to bottom
for (int i = 0; i < (width); i+=10) {
ellipse(i,i,10,10);
}
// From right to left, bottom to top
for (int i = width; i > 0; i-=10) {
rect(i,(height-i),10,10);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment