Lauren Park-Project-06-Abstract Clock

sketch

var sun = 220;
var moon = 235;
var cloud = 260;

function setup() {
    createCanvas(480, 480);
    frameRate(1);  
}

function draw() {
    background(0);
    noFill();
  
    if (second % 2 === 0) {
    if (hour >= 8 & hour < 13) {
      background(182, 224, 239);
      // base()
      // morning()
    } else if (hour >= 13 & hour < 17) {
      background(141, 194, 214);
      // base()
      // afternoon()
    } else if (hour >= 17 & hour < 22) {
      background(79, 130, 150);
      // base()
      // twilight()
    } else if (hour >= 22 & hour < 23.5) {
      background(34, 79, 96);
      // base()
      // night();
    }
    } else if (hour >= 0 & hour < 8) {
      base()
    }
  
    //minutes
    for (var j = 0; j < minute(); j ++){
      sun = map(j, 0, 70, 220, 255);
      moon = map(j, 0, 60, 125, 255);
      cloud = map(j, 0, 50, 280, 255);
      stroke(sun, moon, cloud);
      fill(37, 179, 255);
      ellipse(240, 240, 8*j, 8*j);
    } 
     push();
  
    //seconds
     noFill();
     translate(width/2, height/2);
    for (var i = 0; i < second(); i ++) {
      sun = map(i, 0, 70, 210, 71);
      moon = map(i, 0, 60, 345, 204);
      cloud = map(i, 0, 50, 0, 234);
      stroke(sun, moon, cloud);
      stroke(50, 75, 255);
      rotate(radians(3));
      ellipse(0, 0, 30, 450);
    } 
    
      pop();
  
      
    {
      
    } 
   
     strokeWeight(2);
     noFill();
     translate(width/2, height/2);
    //hours
    for (var k = 0; k < hour(); k ++){
      sun = map(k, 0, 70, 255, 255);
      moon = map(k, 0, 60, 255, 255);
      cloud = map(k, 0, 60, 102, 255);
      stroke(sun, moon, cloud, 190);
      rotate(radians(8));
      ellipse(0, 0, 150, 400);
      
        
    }		
    
}

For my abstract clock, I initially started with an idea revolving around an outer space theme. I wanted to use ellipses to form loophole-like forms and a harmonious shape overalls that move in rhythm to a ticking clock. It was really difficult figuring out how to implement time and speed with these shapes I wanted to incorporate. However, it was really enjoyable to experiment and finally create an artwork that changes depending on how much time has passed, and that the image will not stay the same.

Leave a Reply