Our Google Chart version of the Spyrograph toy was due for a refresh - we realised that several users are coming every day to see it, and the script was not easy to use.
Time to clean our script and publish it in a separate page.
Our Cycloid visualisation script uses Google's Chart API to render a curve in a IMG object.
Tweaking parameters in the curve results in dramatic variations -including some mermerising patterns. In Mathematics these curves are known as Cycloids with the two main varieties: Epicycloids and Hypocycloids.
Please read our previous article on Charts to find more.
Use the sliders to change any of the four parameters for the curve:
When the curve is a Epicycloid, the Planet revolves outside the Sun's surface. If the curve is a Hypocycloid, it revolves inside the Sun's surface.
Try different combinations of the settings -when the values of Yellow and Purple can be divided evenly, the curve tends to be smoother and symmetrical.
Blue changes the size of the peaks and valleys in the curve. Green controls the number of repetitions -for larger numbers, the graph will become very complex, even chaotic, but at the expense of resolution. Small numbers will produce smoother, curvier curves.
A ZIP archive of the project can be found here. You can also copy and paste the following HTML to mashup the script into your own website or blog: