Created
November 25, 2018 15:03
-
-
Save wonderburg7/bcab7b5cd6c5a05473a2627b02ad7830 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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