Created
March 14, 2019 22:04
-
-
Save wonderburg7/6509e860c9ae4c549353952697a84088 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
int i = 0, j =0, k =0, y=0, r, degreepoint = 0, d1, d2; | |
int angle1, point; | |
int radius1, radius2; | |
int diffValue; | |
void setup() | |
{ | |
size(800, 800); | |
background(8, 65, 92); | |
noLoop(); | |
} | |
void draw() { | |
strokeWeight(3); | |
stroke(235, 186, 185); | |
//translate(width*0.25, height*0.25); | |
pushMatrix(); | |
translate(width*.5, width*.5); | |
for (k = 0; k < 440; k++) { | |
angle1 = int(random(360)); | |
radius1 = int(random(70, 290)); | |
radius2 = int(random(80, 310)); | |
if (radius1 > radius2){ | |
diffValue = radius1-radius2; | |
} else { | |
diffValue = radius2-radius1; | |
} | |
if (diffValue < 20){ | |
radius2 += 30; | |
} | |
line(radius1*cos(radians(angle1)), radius1*sin(radians(angle1)), radius2*cos(radians(angle1)), radius2*sin(radians(angle1))); | |
} | |
popMatrix(); | |
save("explody scircle.png"); | |
print("done"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment