color green = color(0, 255, 0); color red = color(255, 0, 0); color black = color(0); color cream = color(242, 212, 147); void setup() { size(400, 400); background(255); stroke(255); strokeWeight(3); float cx = width / 2; float cy = height / 2; float maxR = min(width, height); fill(black); ellipse(cx, cy, maxR, maxR); for (int i = 0; i < 20; i++) { float start = TWO_PI / 20 * i; float stop = TWO_PI / 20 * (i + 1); fill(i % 2 == 0 ? green : red); arc(cx, cy, maxR * 0.8, maxR * 0.8, start, stop, PIE); } for (int i = 0; i < 20; i++) { float start = TWO_PI / 20 * i; float stop = TWO_PI / 20 * (i + 1); fill(i % 2 == 0 ? cream : black); arc(cx, cy, maxR * 0.75, maxR * 0.75, start, stop, PIE); } for (int i = 0; i < 20; i++) { float start = TWO_PI / 20 * i; float stop = TWO_PI / 20 * (i + 1); fill(i % 2 == 0 ? green : red); arc(cx, cy, maxR * 0.5, maxR * 0.5, start, stop, PIE); } for (int i = 0; i < 20; i++) { float start = TWO_PI / 20 * i; float stop = TWO_PI / 20 * (i + 1); fill(i % 2 == 0 ? cream : black); arc(cx, cy, maxR * 0.45, maxR * 0.45, start, stop, PIE); } fill(green); ellipse(cx, cy, maxR * 0.1, maxR * 0.1); fill(red); ellipse(cx, cy, maxR * 0.05, maxR * 0.05); }