Skip to content

Instantly share code, notes, and snippets.

@ohmygodwin
Last active December 22, 2015 16:48
Show Gist options
  • Save ohmygodwin/6501349 to your computer and use it in GitHub Desktop.
Save ohmygodwin/6501349 to your computer and use it in GitHub Desktop.
ICM week 1
int radius = 50;
void setup() {
size(700, 300);
}
void pattern() {
noStroke();
fill(148, 140, 68, 230);
for (int x = -50; x < width; x = x + 100) {
for (int y = -50; y < height; y = y + 100) {
rect(x, y, 100, 100, radius);
}
}
for (int a = 0; a < width; a = a + 100) {
for (int b = 0; b < height; b = b + 100) {
rect(a, b, 100, 100, radius);
}
}
}
void draw() {
background(255);
pattern();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment