Skip to content

Instantly share code, notes, and snippets.

@REAS
Created Sep 4, 2014
Embed
What would you like to do?
Embedded Loops for the Buckeyes
size(600, 600);
background(255);
strokeWeight(8);
strokeCap(SQUARE);
int offsetRange = 100;
int rowHeight = 10;
for (int y = 0; y < 600; y += rowHeight) {
float offset = random(0, offsetRange);
for (int x = 0; x <=400; x += 20) {
line(x+offset, y, x+offset, y+rowHeight);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment