Live data from Hacker News

Bézier Clock

jackf.net

71–73 of 73 posts

Re: Bézier Clock

#73
post #56

Earlier quoted context omitted.

One trick I've noticed to make animations/transitions "snappier" and more natural is to use quadratic/square (power of 2) scaling. For fun I did it on this clock just saving it locally - you can do it by modifying line 140 of `bezier_clock.pde` to square the ratio instead of simply assign it: animationRatio = ratio * ratio; // can also replace with sqrt(ratio) Again, just makes it a little bit 'snappier' ( remember y…

There are many interesting easing functions to play with, primarily due to Robert Penner: http://www.robertpenner.com/easing/

Cool. That's actually fun to try out. http://plnkr.co/edit/JybIMrHpUzGyr39cV5oz?p=preview
Post reply on HN