xxxxxxxxxx
void setup()
{
size(1000,1000);
background(0);
}
void draw()
{
background(255);
//stroke(50,50,200);
noStroke();
strokeWeight(4);
rectMode(CORNER);
fill(200,30,30);
rect(0,0,420,536);
fill(255,230,0);
rect(440,970,260,30);
fill(20,40,150);
rect(933,556,67,162);
fill(0);
rect(0,535,1000,22);
rect(420,0,22,1000);
rect(913,542,22,460);
rect(440,950,483,22);
rect(933,718,67,34);
rect(700,970,213,30);
pushMatrix();
translate(430,542);
float sec = map(second(),0,60,0,2*PI) ;
rotate(sec);
fill(20,40,150);
noStroke();
println(degrees(sec));
rect(-5,0,5,700);
popMatrix();
pushMatrix();
translate(430,542);
float min = map(minute(),0,60,0,2*PI) ;
rotate(min);
fill(20,40,150);
noStroke();
println(degrees(min));
rect(-5,0,12,370);
popMatrix();
pushMatrix();
translate(430,542);
float h = map(hour(),0,60,0,2*PI) ;
rotate(h);
fill(20,40,150);
noStroke();
println(degrees(sec));
rect(-6,0,20,200);
popMatrix();
}