Personal Projects and Mucking Around
| |
© Luke Wallin 2005-2017 |
Harmonograph Simulator
How it WorksFirstly, in case you (quite likely) haven't heard of a harmonograph before: Wikipedia on Harmonographs. My simulator works by simulating pendulums that swing along either the x or y axis with damped simple harmonic motion. You can set the frequency, initial phase, amplitude and damping for each pendulum and have as many pendulums as you like. What seems to work very well is pairing up an x and y axis pendulum and giving them a very similar frequency, and then adding another pendulum with a very different frequency and play about with damping. It's written in Javascript and uses HTML 5's canvas to produce the image. IE still doesn't support much HTML5 natively so a lot of features (drawing slowly, exporting images, sliders) aren't avaliable in IE. However it does still work, to an extent. Many thanks to the author of this page. Future Plans(I always write these and so rarely complete them...)
|