Show HN: An analog clock on html canvas
dmaydan.github.io
dmaydan.github.io
Only problem is that it though it only changes one time per second, the requestAnimationFrame() mechanism will cause the clock to wastefully repaint itself many times per second.
Actually instead of fixing that, maybe it would be possible to interpolate sub-second-precision positions, to have a smoothly moving second hand.
Or, here is an idea: simulate the impulse function of each pop of the second hand: how the hand overshoots, followed by the decaying oscillation known as "ringing".
I’m not sure what you mean with that last suggestion - I’m pretty sure you’re joking, but I still have no idea what you’re talking about.
So that's just an alternative for doing something at the sub-second resolution, compared to just a smoothly rotating hand.