float secon = 0.0; float minut = 0.0; float heure = 0.0; void setup(){ size(480, 480); background(0); frameRate(1); smooth(); } void draw(){ rectMode(CORNER); fill(0); noStroke(); rect(0, 0, width, height); secon = second(); minut = minute(); heure = hour(); for (float i = 1.0; i <= secon ; i++){ strokeWeight(2); stroke(204); line (i * (width - heure * 10)/(secon + 1) + (heure * 10/2), heure * 10/2, i * (width - heure * 10)/(secon + 1) + (heure * 10/2), height - (heure * 10/2)); } for (float j = 1.0; j <= minut ; j++){ stroke(204); line (heure * 10/2, j * (height - heure * 10)/(minut + 1) + (heure * 10/2), width - (heure * 10/2), j * (height - heure * 10)/(minut + 1) + (heure * 10/2)); } for (float k = 1.0; k <= heure ; k++){ noFill(); stroke(204); rectMode(CENTER); rect (width/2, height/2, width - (k * 10), height - (k * 10)); } secon += 1; }