float segmentCount, angleStep, radius; void setup() { size(800, 800); colorMode(HSB, 360, 100, 100); stroke(350); strokeWeight(8); } void draw() { background(350); segmentCount = 10; angleStep=360/segmentCount; float div = 5; radius = width/div; beginShape(TRIANGLE_FAN); vertex(width/2, height/2); for (float angle=0;angle <=360*4; angle+=angleStep) { float vx = width/2 + cos(radians(angle))*radius; float vy = height/2 + sin(radians(angle))*radius; vertex(vx, vy); fill(angle%360, 100, 90,80); radius *=1.02; } endShape(); }