xxxxxxxxxx
void setup () {
size(800,800);
background(255);
smooth();
}
void draw () {
fill(255);
noStroke();
rect(0,0,width,height);
for (int i=12;i>0;i--){
fill(25+18*i);
arc(400,400,i*45,i*45,-PI,0);
}
for (int j=12;j>0;j--){
fill(90+13*j);
arc(400,400,j*45,j*45,0,PI);
}
for(int j=60;j>0;j--){
stroke(0);
noFill();
if(j%5==0){
strokeWeight(0.25);
}else{
strokeWeight(0.1);
}
arc(400,400,j*9,j*9,0,PI,OPEN);
}
if(second()%2==0){
strokeWeight(0.4);
}else{
strokeWeight(0.7);}
if (hour()<13){
if(hour()<6){
stroke(250);
}else{
stroke(0);}
arc(400,400,45*(hour()),45*(hour()),PI,2*PI,OPEN);
}else{
if(hour()<18){
stroke(250);
}else{
stroke(0);}
arc(400,400,45*(hour()-12),45*(hour()-12),PI,2*PI,OPEN);
}
stroke(0);
strokeWeight(0.6);
arc(400,400,9*minute(),9*minute(),0,PI, OPEN);
stroke(240);
strokeWeight(second()*5);
ellipse(400,400,1023-second()*3,1023-second()*3);
}