Skip to content

Instantly share code, notes, and snippets.

@cosinekitty
Created January 14, 2020 01:56
Show Gist options
  • Save cosinekitty/5d2e3422e88f5ad096950b632de48c93 to your computer and use it in GitHub Desktop.
Save cosinekitty/5d2e3422e88f5ad096950b632de48c93 to your computer and use it in GitHub Desktop.
HTML code for the harmonograph simulator
<!DOCTYPE html>
<html>
<head>
<title>Harmonograph simulation by Don Cross</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="harmonograph.css">
</head>
<body>
<div><canvas id="GraphCanvas" class="HarmonographCanvas"></canvas></div>
<div>
<input id="FrequencySlider1" type="range" min="2.9" max="3.1" value="3.0" step="any">
<input id="FrequencySlider2" type="range" min="8.9" max="9.1" value="9.01" step="any">
<input id="FrequencySlider3" type="range" min="5.9" max="6.1" value="6.0247" step="any">
</div>
<script src="harmonograph.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment