//Owen D Haft
//Section D
//odh@andrew.cmu.edu
//Project 6
function setup() {
createCanvas(265, 530);
}
function draw() {
background(220-(2*day())); //The background darkens with the currentday
stroke(255);
//Creates the Red Ball thats grows/move/changes color with the current second
strokeWeight(1);
fill(second()*4, second(), second());
ellipse(width-4*second(), height/2+4*second(), second(), second());
//Creates the Blue Ball thats grows/move/changes color with the current minute
strokeWeight(2);
fill(minute(), minute(), minute()*4);
ellipse(4*minute(), height/2-4*minute(), minute(), minute());
rotate(6); //This adds disorder to the lines and helps place the Hour ball with them
//Creates the Yellow Ball thats grows/move/changes color with the current hour
strokeWeight(4);
fill(hour()*12, hour()*12, 0);
ellipse((width/2)+1, height/2, hour(), hour());
strokeWeight(1);
//Creates the lines
line(0, height, width, 0);
line(0, width, height, 0);
line(width/2, 0, width/2, height);
line(0, height/2, width, height/2);
}
In my abstract clock I really ran with the word “abstract.” I reduced seconds, minutes, and hours each into a primary colored ball that moves and changes color and size as each aspect of time changes. I also hinted at the day with the shade of the background.