xxxxxxxxxx
void setup()
{
size(1000, 1000);
background(38, 38, 40);
noStroke();
}
void draw()
{
fill(196, 45, 34);
rect(0, 0, 422, 540);
fill(239, 240, 235);
rect(440, 0, 560, 540);
rect(0, 558, 422, 443);
fill(239, 239, 229);
rect(440, 558, 474, 393);
rect(933, 756, 68, 245);
fill(244, 214, 56);
rect(440, 974, 262, 26);
fill(34, 70, 142);
rect(933, 558, 66, 167);
fill(34, 32, 40);
rect(725, 974, 188, 27);
pushMatrix();
fill(0);
translate(3*width/7, height/7);
float sec_angle = map(second(), 0, 59, 0, 5*PI);
rotate(sec_angle);
rect(-1.5, 0, 3, 300);
popMatrix();
pushMatrix();
fill(0);
translate(3*width/7, height/7);
float third_angle = map(minute(), 0, 59, 0, 2*PI);
rotate(third_angle);
rect(-3.5, 0, 7, 300);
popMatrix();
pushMatrix();
translate(3*width/7, height/7);
fill(0);
float fourth_angle = map(hour(), 0, 59, 0, 10*PI);
rotate(fourth_angle);
rect(-3.5, 0, 7, 200);
popMatrix();
save("Mondrian_Uhr_Trinkl_Claudia.jpg");
}