Simulations Written in JavaScript
The "canvas" tag in HTML5 enables you to set up an area on a web page on which you can draw diagrams, images, text, etc, using JavaScript commands.
So I've taught myself JavaScript and associated web page design to construct a number of interactive simulations, mainly physics ones.
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 and can be played off-line. The file sizes are very small, only round about 10KB.
I have also made a start to create "Teacher Notes" to accompany selected simulations. This is a 'work in progress'.
Click here to
DOWNLOAD a package of eleven simulations (and one Teachers' Notes document) in zip format (84KB, October 2021 version). The simulations are:
- A Simple Punnett Square
- Vertical Spring SHM
- Radioactive Decay
- Longitudinal Waves
- Standing Waves
- Equilibrium on a Beam
- Series LCR - Circuit Calculator
- Series LCR - Linking Voltage Graphs with Phasor Diagram
- Projectile Motion
- Simple Pendulum with Variable Initial Angle
- Random Walker

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.