diff options
| author | 2023-10-13 20:57:02 +0000 | |
|---|---|---|
| committer | 2023-10-13 20:57:02 +0000 | |
| commit | 136d554738104aa7fe5abc83f36cf4be1dafe1d7 (patch) | |
| tree | 26fcee1d469518f24200da627d6cd78183c0230f | |
| parent | change wording (diff) | |
| -rw-r--r-- | index.html | 1 | ||||
| -rw-r--r-- | scattering.js | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -28,6 +28,7 @@ Angle: <input type="number" value="-45" step="any" id="angleControl" /> <option value="putWave">Place Plane Wave</option> <option value="putAtom">Place Atom</option> </select> +<canvas id="canvas" /> </p> </body> </html> diff --git a/scattering.js b/scattering.js index 14fbcad..792c818 100644 --- a/scattering.js +++ b/scattering.js @@ -589,7 +589,7 @@ var sim; function setup() { document.getElementById("speedControl").value=100; frameRate(30); - createCanvas(800, 600); + createCanvas(800, 600, document.getElementById("canvas")); fill(0); sim = new Simulation(); } |
