Match the harmonic: An HTML5 Demo
HTML5.armonica is another example of what you can do with new drawing technologies on the Web.
This demo has been inspired by a Splinter Cell reminds about some time ago. In order to crack a system, in the game, you had to match a given signal with a random one, generated on the fly.
In this case the objective is the same , player may modify amplitude and angular frequency with arrow keys to match the given signal (is it possible to extend the example to offset too, if you manipulate the key event listener code).
Just for a reminder, the equation of simple harmonic oscillator is:
