171022 Processing Work



SourceCode

float theta; float a = 4; void setup() { size(1440, 850); } void draw() { background(240); frameRate(120); noFill(); stroke(80); strokeWeight(21); strokeCap(PROJECT); translate(width/2, height/2); if (a>500){ a = 0;} a += 0.0625; theta = radians(a); pushMatrix(); drawArc(theta, 50); popMatrix(); } void drawArc(float h, float r) { if (r < height-50) { arc(0, 0, r, r, 0, h); rotate(theta); drawArc(h, r+38); } }

댓글