//One variable controls the hands on the "clock" //PS1 #4 //Konstantino Kapetaneas - 500324892 //MEMO: Remember to take 3 snapshots! void setup() { size(400, 400); smooth(); } void draw() { background(29); stroke(#00ccff); strokeWeight(4); noFill(); ellipse (200, 200, 250, 250); float v = map(mouseY, 0, 400, 100, 300); //Technically, I'm still using only ONE variable //...to control the 3 lines, see? :) //Hour Hand stroke(#0030ff); line(200, 200, 200, v); //Minute Hand stroke(#ffffff); strokeWeight(3); line(200, 200, v, 150); //Seconds Hand stroke(#7bf1ff); strokeWeight(2); line(200, 200, 150, v); }