Time in the circles: Creative time display

Sia Chang
2 min readSep 23, 2020

--

https://editor.p5js.org/xc2028/full/9x4K1PtFT

The idea was inspired by the visual display design of Apple Watch activity tracking.

How to Use Activity Monitor on Apple Watch to Track Your Fitness

Visual design

I designed three concentric circles with different radiuses and gradient colors to indicate hours, minutes, and seconds, with the innermost circle being the seconds and the outermost circle being the hour displays.

The actual time display is reflected by the degrees each occupies and is updated clockwise.

Coding

I use the source code of the clock in the p5js examples. (https://p5js.org/examples/input-clock.html)

The variable names are previously defined by the source code, so I started by changing the radiuses of the circles for hours, minutes, and seconds.

Then I created the background circles, the arcs, and the hands for hours, minutes, and seconds. Here’s an example of hour:

To make the arcs update based on the time change, I used the arc function and set the starting point to -HALF_PI, and the end point to the defined time ( h here as an example).

And here’s the link to the final design of “Time in the circles”!

References:

p5.js clock reference: https://p5js.org/examples/input-clock.html

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response