Skip to content

Instantly share code, notes, and snippets.

@wonderburg7
Created November 25, 2018 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wonderburg7/bcab7b5cd6c5a05473a2627b02ad7830 to your computer and use it in GitHub Desktop.
Save wonderburg7/bcab7b5cd6c5a05473a2627b02ad7830 to your computer and use it in GitHub Desktop.
float ry = 0, ry2, i, j;
void setup() {
size(700, 700);
background(57);
smooth();
noFill();
stroke(2);
noLoop();
}
void draw() {
beginShape();
for(j = 0; j < height; j++){
for(i = 0; i < height; i++){
//curveVertex(ry, i);
ry += int(random(-2,2));
line(ry2, i, ry,i);
ry2 = ry;
}
ry =+ j*2;
}
endShape();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment