by unwind · 15y ago · 0 comments
I played with Javascript sine animations as a way of introduce the idea of sine function in some intuitive way.
Eg Two Rotating Circles - http://quantblog.wordpress.com/2011/10/05/adding-circles-jav...
I think Javascript hacking in a web page is todays equivalent to hacking GW-Basic, Turbo Pascal or A86 assembler for my generation.
It's not precomputed server-side, it's precomputed when the fade effect is called in the JS. The value for each step is then stored in the task object that performs the fade. Which is cheating a little bit, I suppose, but this way, I can fade from any value to any value, at what appears to be the same "speed", without any glitching.