ocannoli-clock

Big Brother's Clock

Replacing Minutes with Seconds View:

Explanation:

From the beginning, I knew I wanted to experiment with time unconventionally because I love the relativity of time and how it is interpreted.  I began to mess around with the concept of taking time and making each minute into a year by adding the hours and minutes to create the decade in the 1900s. Although it is not an "accurate" representation of time, I liked that it furthered the idea of time's interpretive nature. Originally, I was thinking of sampling a song from a certain year and possibly using APIs to gain access to a variety of music. However, as I experimented with how to compute the year, I was fascinated that although there are technically 24 hours in a day and 60 minutes in a hour, the clock never reaches this technically real but not real time. Furthermore, when inserted into my formula of computing the year, this "ideal" year was 1984. I found that an extremely interested premise that time somewhat revolved around this number and subsequently considering that time revolved around the ideas about society and humanity within the novel. From here, my concept shifted from music to literature considering the significance of the book 1984. Although not complex in code, each book was picked to embody some of the morals shown in 1984.  Each book serves an important purpose and therefore the projection of time through these books is personal and biased based on my experiences. Overall, "Big Brother's Clock" was made through an exploration of the conceptual more than the visual or mathematical.

//The Clock of 1984
PImage bookBack;
int circleX, circleY;
int circleSize = 50;
color circleColor;
color currentColor;
boolean circleOver = false;
int visible; 
 
 
void setup() {
  size(800, 570);
  bookBack=loadImage("oldBook.jpg");
  circleColor = color(255);
  currentColor=color(209, 142,8);
  circleX = 180;
  circleY = 70;
  visible=-1; 
  ellipseMode(CENTER);
}
 
void draw() {
  image(bookBack,0,0);
 
  //All 83 Books
   String[] books = {"The Wonderful Wizard of Oz",
    "The First Men in the Moon",
    "Just So Stories",
    "The People of the Abyss",
    "The Tale of Peter Rabbit\nand Benjamin Bunny",
    "The Gift of the Magi",
    "The Future in America:\nA Search After Realities",
    "Cautionary Tales for Children",
    "The Man Who Was Thursday",
    "The Machine Stops",
    "Howards End",
    "The Secret Garden",
    "The Problems of Philosophy",
    "The Google Book",
    "The Beasts of Tarzan",
    "The Metamorphosis",
    "Relativity: The Special\nand the General Theory",
    "His Family",
    "The Decline of the West:\nPerspectives of world-history",
    "Strange News from Another Star",
    "The Age of Innocence",
    "How to Analyze\nPeople on Sight",
    "The Velveteen Rabbit",
    "The Ego and the Id",
    "So Big",
    "The Great Gatsby",
    "Winnie-the-Pooh",
    "Being and Time",
    "Nadja",
    "Is Sex Necessary? Or,\nWhy You Feel the Way You Do",
    "The Mysterious Universe",
    "The Story of Babar,\nthe Little Elephant",
    "Journey to the End\nof the Night",
    "Lord Edgware Dies",
    "The Logic of\nScientific Discovery",
    "It Can't Happen Here",
    "How to Win Friends\nand Influence People",
    "The Hobbit",
    "The Sword in the Stone",
    "The Secret Life\nof Walter Mitty",
    "Portrait of the\nArtist as a Young Dog",
    "The Garden of Forking Paths",
    "The Stranger",
    "The Little Prince",
    "What Is Life?",
    "Animal Farm",
    "The Common Sense Book\nof Baby and Child Care",
    "The Age of Anxiety",
    "No Longer Human",
    "Death of a Salesman",
    "The Martian Chronicles",
    "The Catcher in the Rye",
    "The Borrowers",
    "Fahrenheit 451",
    "Lord of the Flies",
    "I can jump puddles",
    "Aniara",
    "The Cat in the Hat",
    "The Computer and the Brain",
    "Sweet Bird of Youth",
    "The Weirdstone of Brisingamen",
    "James and the Giant Peach",
    "A Wrinkle in Time",
    "Where the Wild Things Are",
    "The Giving Tree",
    "The Autobiography of Malcolm X",
    "Rosencrantz and\nGuilderstern Are Dead",
    "The Medium is the Massage:\nAn Inventory of Effects",
    "Do Androids Dream\nof Electric Sheep?",
    "Slaughterhouse-Five",
    "Fantastic Mr. Fox",
    "A Happy Death",
    "Frog and Toad Together",
    "Momo",
    "The Chocolate War",
    "Tuck Everlasting",
    "The Alteration",
    "Bridge to Terabithia",
    "The World According to Garp",
    "The Neverending Story",
    "Cosmos: A Personal Voyage",
    "A Light in the Attic",
    "Life, the\nUniverse and Everything",
    "Pet Sematary"
   };
 
 
  // Fetch the current time
  int H = hour();
  int M = minute();
  int arrSpot = H+M;
  int year = 1900 + (H + M);
 
 
 
  noStroke();
  PFont font = createFont("BonvenoCF-Light.otf",32);
  textFont(font); 
  fill(255,255,255);
  textSize(20);
  String currTimeString = "19: " + (H) + "+" + nf(M, 2);
  if (visible>0){
  text(currTimeString, 10, 25);
  text("Hour: " + H, 10, 50);
  text("Minute: " + M, 10, 75);
  text(year, 10, 100);
  }
  textSize(25);
  text(books[arrSpot], 300,80);
 
  update(mouseX, mouseY); 
  if (circleOver) {
    fill(currentColor);
  } else {
    fill(circleColor);
  }
  ellipse(circleX, circleY, circleSize, circleSize);
  fill(51); 
  textSize(7);
  text("   Clock\nBreakdown", circleX-19,circleY-5); 
  text("   Clock\nBreakdown", circleX-19.5,circleY-5); 
}
 
 
//Code Modified From Processing Site
void update(int x, int y) {
  if ( overCircle(circleX, circleY, circleSize) ) {
    circleOver = true;
  }
  else{
    circleOver=false; 
  }
}
 
void mousePressed() {
  if (circleOver) {
    visible=visible*-1; 
    color temp= circleColor;
     circleColor=currentColor;
     currentColor=temp; 
  }
}
boolean overCircle(int x, int y, int diameter) {
  float disX = x - mouseX;
  float disY = y - mouseY;
  if (sqrt(sq(disX) + sq(disY)) < diameter/2 ) {
    return true;
  } else {
    return false;
  }
}
 
//Image Credits: BuyBackdrops.com
//https://www.buy-backdrop.com/bmz_cache/e/e7d916a4073273331838331e718c7a53.image.300x200.jpg