xxxxxxxxxx
void setup() {
size(1000, 1000);
background(34, 40, 42);
noStroke();
}
void draw() {
fill(194, 46, 34);
rect(0, 0, 421, 537);
fill(235, 236, 231);
rect(441, 0, 559, 537);
rect(0, 557, 421, 443);
fill(244, 244, 234);
rect(441, 557, 475, 389);
rect(936, 754, 64, 246);
fill(36, 73, 144);
rect(936, 557, 64, 163);
fill(239, 213, 58);
rect(441, 969, 260, 31);
fill(50, 51, 56);
rect(727, 969, 189, 31);
translate(-69, 47);
fill(34, 40, 42);
pushMatrix();
float sec = map(second(), 0, 60, 0, 2 * PI);
translate(width / 2, height / 2);
rotate(sec);
rect(-10, 0, 20, -1000);
popMatrix();
pushMatrix();
float min = map(minute(), 0, 60, 0, 2 * PI);
translate(width / 2, height / 2);
rotate(min);
rect(-10, 0, 20, -350);
popMatrix();
pushMatrix();
float blablabla = map(hour(), 0, 12, 0, 2 * PI);
translate(width / 2, height / 2);
rotate(blablabla);
rect(-10, 0, 20, -250);
popMatrix();
}