xxxxxxxxxx
void setup ()
{
size (901, 897);
background (0);
}
void draw()
{
fill (#E62B20);
rect (0,0, 379, 483);
//Uhr
fill (#F4F4F2);
rect (397, 0, 505, 483);
fill (#F4F4F2);
rect (0, 501, 379, 397);
//sekunden
fill (#F4F4F2);
rect (397, 501, 425, 351);
fill (#004391);
rect (840, 501, 61, 146);
fill (#F4F4F2);
rect (840, 676, 58, 218);
fill(#FEDD2F);
rect (397, 873, 235, 24);
pushMatrix();
translate(159, 230);
float sec_angle = map(second(), 0, 59, 0, 2*PI);
translate (width/2, height/2);
rotate(sec_angle);
strokeWeight(8);
line(0,0,0, 50);
popMatrix();
pushMatrix();
translate(184,-206);
float hour_angle = map(hour(), 0, 59, 0, 2*PI);
translate (width/2, height/2);
rotate(hour_angle);
strokeWeight(3);
line(0,0,0, 100);
popMatrix();
pushMatrix();
translate(184,-206);
float min_angle = map(minute(), 0, 59, 0, 2*PI);
translate (width/2, height/2);
rotate(min_angle);
strokeWeight(3);
line(0,0,0, 150);
popMatrix();
}