Created
December 13, 2018 23:33
-
-
Save wonderburg7/8a7acbcb5f0e9d08c8b09ebd7e8d07c6 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 radius = 300; | |
void setup() | |
{ | |
size(800, 800); | |
background(255, 254, 233); | |
noLoop(); | |
} | |
void draw() { | |
strokeWeight(3); | |
stroke(0, 0, 0); | |
//translate(width*0.25, height*0.25); | |
pushMatrix(); | |
translate(width*.5, width*.5); | |
for (k = 0; k < 360; k++) { | |
angle1 = k; | |
line(0, 0, radius*cos(radians(angle1)), radius*sin(radians(angle1))); | |
} | |
popMatrix(); | |
//save("circles.png"); | |
print("done"); | |
} | |
/* 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