diff options
| author | 2023-10-13 14:31:03 +0000 | |
|---|---|---|
| committer | 2023-10-13 14:31:03 +0000 | |
| commit | a00238fd1e5135b0f4258cf35433e76265b86bec (patch) | |
| tree | ced48e7f8867aa94f44ce58542a0ef28ab3a2a2d /index.html | |
| parent | pause (diff) | |
make buttons for easier mobile use
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 37 |
1 files changed, 21 insertions, 16 deletions
@@ -4,25 +4,30 @@ <!-- <link rel="stylesheet" type="text/css" href="style.css"> --> <script src="p5.min.js"></script> <meta charset="utf-8"> +<!-- <p>The code for this simulation is GNU GPL v3.0 or later. This page is +distributed <b>WITHOUT ANY WARRANTY; without even the implied warranty +of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</b> See the GNU +GPL for more details. </p> --> </head> <body> <script src="scattering.js"></script> -<p>Plane wave scattering simulation by Peter McGoron</p> -<p>This page and the associated code is GNU GPL v3.0 or later. This page is -distributed <b>WITHOUT ANY WARRANTY; without even the implied warranty -of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</b> See the GNU -GPL for more details. <a href="https://software.mcgoron.com/peter/scattering.js">Code</a></p> -<p>Things to try: -<ul> -<li>Send a wave at an angle to the lattice.</li> -<li>Send a bunch of waves to the lattice at once.</li> -<li>Send a bunch of waves to the lattice, but slowly. </li> -</ul> -For each case, what do the wavefronts look like? +<p>Huygens principle simulation by Peter McGoron. <a href="https://software.mcgoron.com/peter/scattering.js">Code</a> +You are allowed to use recordings of this simulation for any purpose. The license for the code is in the repository.</p> +<!-- make mode selection a drop down +add tutorial +allow moving atoms --> +<p> +<button id="clearWaves">Clear waves</button> +<button id="clearAtoms">Clear atoms</button> +<button id="periodicSetup">Create Periodic Array </button> +<button id="pause">Pause/Unpause</button> +Simulation Speed: <input type="number" value="100" min="0" step="any" id="speedControl" /> +Angle: <input type="number" value="-45" step="any" id="angleControl" /> +<select name="modeSelect" id="modeSelect"> + <option value="base" selected>Select Only</option> + <option value="putWave">Place Plane Wave</option> + <option value="putAtom">Place Atom</option> +</select> </p> -<p>CTRL+Click to add an atom. Hold left click to add a plane wave, and release left -click to launch the plane wave. Press ENTER to pause.</p> -<button id="clear_waves">Clear waves</button> -<button id="clear_atoms">Clear atoms</button> </body> </html> |
