void setup() { size(893, 50); } void draw() { background(204); strokeWeight(1); stroke(0, 150); smooth(); float radius2 = 0.15; float cx = width*0.5; float cy = 25; float px = cx; float py = cy; for (int deg2 = mouseX*10; deg2 < 360 * 500; deg2 += 12) { float angle2 = radians(deg2); float x1 = cx + (cos(angle2) * radius2); float y1 = cy + (sin(angle2) * radius2); line(px, py, x1, y1); radius2 = radius2 * 1.005; px = x1; py = y1; } noStroke(); smooth(); float radius = 1.0; for (int deg = mouseX*10; deg < 360 * 500; deg += 11) { float angle = radians(deg); float x = (width*0.5) + (cos(angle) * radius); float y = 25 + (sin(angle) * radius); ellipse(x, y, 6, 6); radius = radius + 0.34; } }