scattering.js/index.html

34 lines
1.4 KiB
HTML
Raw Normal View History

2023-10-10 23:11:56 -04:00
<!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">
2023-10-13 10:31:03 -04:00
<!-- <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> -->
2023-10-10 23:11:56 -04:00
</head>
<body>
2023-10-11 15:05:35 -04:00
<script src="scattering.js"></script>
2023-10-13 14:02:55 -04:00
<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>
2023-10-13 10:31:03 -04:00
<!-- 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>
2023-10-13 14:02:55 -04:00
Animation Speed: <input type="number" value="100" min="0" step="any" id="speedControl" />
2023-10-13 10:31:03 -04:00
Angle: <input type="number" value="-45" step="any" id="angleControl" />
<select name="modeSelect" id="modeSelect">
2023-10-13 14:02:55 -04:00
<option value="base" selected>Select an Action</option>
2023-10-13 10:31:03 -04:00
<option value="putWave">Place Plane Wave</option>
<option value="putAtom">Place Atom</option>
</select>
2023-10-11 15:05:35 -04:00
</p>
2023-10-10 23:11:56 -04:00
</body>
</html>