Simulations Written in JavaScript

Late in 2012 I found out about the "canvas" tag in HTML5. You can use this tag to set up an area on a web page on which you can draw diagrams, images, text, etc using JavaScript commands.

So over the New Zealand summer I read up on HTML5, the JavaScript scripting language and associated web page design using cascading style sheets (css) and the document object model (DOM).
This year I've been working on a number of simulations, mainly physics ones. I have started to put them up here after presenting them at the NZ Institute of Physics Conference at the end of September.

Where possible I have constructed each simulation as a single "stand-alone" HTML file with the JavaScript code incorporated within the file. The simulations will work on all modern browsers such as Internet Explorer 9, Firefox, Chrome, Safari and Opera. The simulations can be played off-line and no special plugins are needed (such as Flash and Java) as is the case in many other simulations. The file sizes are very small, about 10KB. They can even be played on cellphones and both Apple and Android tablets.

I have also started to create "Teacher Notes" web pages/Word documents to accompany each simulation.

Click here to DOWNLOAD the current package of seven simulations and one Teachers Notes document in zip format (38KB, December 2013 version).
The simulations are: A Simple Punnett Square, Longitudinal Wave, Radioactive Decay, Vertical Spring SHM, Random Walker, Series LCR - Circuit Calculator, Series LCR - Linking Voltage Graph with Phasor Diagram.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Please feel free to contact me about the simulations - either to suggest corrections or improvements and additions.
Cheers, Denis.
December 2013