35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- <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>Huygens principle animation by Peter McGoron. <a href="https://software.mcgoron.com/peter/scattering.js">Code</a>
|
|
You are allowed to use recordings of this animation 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>
|
|
Animation 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 an Action</option>
|
|
<option value="putWave">Place Plane Wave</option>
|
|
<option value="putAtom">Place Atom</option>
|
|
</select>
|
|
<canvas id="canvas" />
|
|
</p>
|
|
</body>
|
|
</html>
|