//ŽžŒv int cx, cy; int radius = 120; void setup() { size(300, 300); colorMode(RGB, 100); background(100); smooth(); frameRate(10); cx = width / 2; cy = height / 2; } void draw() { noStroke(); fill(#E9967A); ellipse(150, 50, 40, 40); ellipse(250, 150, 40, 40); ellipse(150, 250, 40, 40); ellipse(50, 150, 40, 40); noStroke(); fill(100, 30); rect(0, 0, width, height); float s = second(); float m = minute() + s / 60.0; float h = hour() % 12 + m / 60.0; float r; r = -TWO_PI * h / 12 + HALF_PI; stroke(#666666); strokeWeight(4); line(cx, cy, cx + cos(r) * radius * 0.5, cy - sin(r) * radius * 0.5); r = -TWO_PI * m / 60 + HALF_PI; stroke(#333333); strokeWeight(2); line(cx, cy, cx + cos(r) * radius * 0.75, cy - sin(r) * radius * 0.75); r = -TWO_PI * s / 60 + HALF_PI; stroke(#000000); strokeWeight(1); line(cx, cy, cx + cos(r) * radius * 0.9, cy - sin(r) * radius * 0.9); }