The Magic Hat
Playing with maths again.
The outer ring is positioned via a 2 dimensional array setup at start up. Each red circle is an individual graphic but the entire ring can be repositioned in code through changing one value. The travelling dot which appears to flip on each second used a 2d array, on reflection was a waste of cycles so switched back to counters. One cycle squashes, fades out another expands, fades in.
The date text shrinking towards the current month is a simple calculation converting month to degrees.
Battery level pulse speed is the negation of current % and the colour change is a simple conditional list.
Finally the swing time is a simple ramping calculation by utilising cosine, radians, milliseconds and a multiplier constraint.
tap centre 12/24hr
tap date circle for colour change
Uploaded on 12 Mar 2019