Git Product home page Git Product logo

fibonacci-clock's Introduction

Fibonacci Clock

Javascript Fibonacci Clock

A beautiful little clock for your bedside table, inspired by the Fibonacci Clock kickstarter.

The clock is displayed in a web browser, by opening the index.html file provided.

Using the Clock

There are two ways to use the clock:

  1. Recommended: View it online at mrfishie.github.io/fibonacci-clock
  2. Clone the repo and view it locally.

Cloning the repo is a bit more complicated. First, you need git installed. Navigate to the directory where you would like to place the clock, and run the command

git clone https://github.com/mrfishie/fibonacci-clock

The repo will be cloned into the fibonacci-clock directory. To view the clock, open the index.html file in this directory in your browser.

Reading the Clock

The clock displays hours, minutes, and seconds, using the first five Fibonacci numbers: 1, 1, 2, 3, 5. The sizes of the boxes are equivalent to the number they represent:

Labelled Fibonacci Clock

The colour of the cells are used to determine if the cell is adding to the minutes or hours. The colours are:

  • Blue - empty (ignore)
  • Red - hours
  • Green - minutes
  • Yellow - hours and minutes

To find the hours, add up the values of each of the red and yellow squares. This will give you a number between 1 and 12.

To find the minutes, add up the values of each of the green and yellow squares, and then multiply this by 5. This will give you a number between 0 and 60.

The amount of seconds are shown by white flashes on blocks every 5 seconds. These are calculated in the same way as minutes.

To view the complete current time, move your mouse underneath the boxes. The full time will be shown.

fibonacci-clock's People

Contributors

mrfishie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.