Interactive Physics: Simple Harmonic Motion on HTML5 Canvas
A ball attached to a spring shows simple harmonic motion - SHM
More About This Demo From The Author
The animation is created on HTML5 Canvas without the use of any external images: the ball is made using context.arc() method and context.createRadialGradient() methods.
Math.sin object is used to produce the animation effect.
About this Demo
This demo is released under the MPL/GPL/LGPL license.