JWaves

Simulation of a vibrating rope

Built using JavaScript, HTML5, Canvas, Audio

  • 113 views
  • 2 comments

More About This Demo From The Author

This is a vibrating rope simulation written in JavaScript, using Canvas.
It's possible to change the wave's shape, the speed of the simulation, the eventual friction. It's also possible to toggle sound on or off (only for Firefox).
I plan to:
- Support audio output for every browser
- Investigate offloading something (like drawing and/or calculating the wave and/or playing the sound) to a Web Worker (just to learn how to use them :D)
- Drag and Drop of the rope to manually set a starting shape

The demo is currently in Italian, but is really simple to use (btw, I'll translate it in English asap).

2 comments so far

Log in to add your own.

  1. pinolo2 said,

    Nice job Marco! ;)
  2. italotoffolo said,

    Sensacional!

Get the Source Code

Download the Source 2.76 KB · ZIP File

This demo is released under the MPL/GPL/LGPL license.