News for hackers. Stuff that matters.
Re:Spirograph in HTML 5 by sea6ear on Saturday April 06, 2013 @10:15PM (#5505843)
I find Hal Abelson's book Turtle Geometry [1] fascinating. It describes a dialect of Logo (the graphical routines could probably be implemented relatively easily in Python/Tkinter or Tcl/Tk or something like Processing).

Once the basics are described, then it uses them to go on to explore things like non-euclidian geometry (and maybe topology?).

[1] http://www.amazon.com/Turtle-Geometry-Mathematics-Artificial...

Re:Spirograph in HTML 5 by DanBC on Saturday April 06, 2013 @09:13PM (#5505728)
I love this.

  Since I'm on an old book kick today, here's a link to an old book with similar, simpler, nice graphics.
(http://www.amazon.com/Mathographics-Robert-Dixon/dp/04862663...)
Re:Spirograph in HTML 5 by andrewcooke on Saturday April 06, 2013 @09:01PM (#5505692)
fwiw, http://www.acooke.org/spirograph.html - svg + js, cerca 2005.

anyone have a java applet that still runs? :o)

[edit: the source http://www.acooke.org/spiro.svg]

Re:Spirograph in HTML 5 by alisey on Sunday April 07, 2013 @07:17AM (#5506824)
Here's a similar algorithm that creates patterns slightly resembling radiolarians:

http://alisey.deviantart.com/art/Orbits-316110768

http://explord.com/experiments/orbits/

Re:Spirograph in HTML 5 by jmspring on Sunday April 07, 2013 @12:15AM (#5506091)
Great to see this. It reminds me of the original toy.

If I had the time/inclination, a kickstarter based on the original toy that rendered on paper and screen might be an interesting plaything.

Another future angle could clearly involve 3d-printing of the disks.

Good stuff.

Re:Spirograph in HTML 5 by inDigiNeous on Sunday April 07, 2013 @10:31AM (#5507307)
You might also want to check out http://GeoKone.NET, which is kinda similar, but not trying to imitate the original spirograph. But I hear many people have compared the two.

GeoKone is much more complex though and allows much more flexible geometry to be created.

Re:Spirograph in HTML 5 by ChuckMcM on Saturday April 06, 2013 @08:49PM (#5505659)
Nice! Now to hook that up to some lasers :-)
Re:Spirograph in HTML 5 by ISL on Saturday April 06, 2013 @10:40PM (#5505894)
Any concerns with epilepsy, running at the higher speeds? Seemed like the rendered spirograph got into the relevant frequency range.
Re:Spirograph in HTML 5 by ttty on Sunday April 07, 2013 @08:41AM (#5507017)
Is that code formatting automatic? if yes, how did you do? (comma, variable number of spaces, key, value)

     {
      orientation : 'vertical'
      ,   animate : true
      ,     value : 100 * radii[ ix + 1 ]
      ,     slide : onChange
      ,    change : onChange
      ,      step : .01
    }
Re:Spirograph in HTML 5 by Rinum on Saturday April 06, 2013 @09:03PM (#5505705)
I'm always amazed at how much can be accomplished with so little code; this is awesome!
Re:Spirograph in HTML 5 by billpg on Sunday April 07, 2013 @08:31AM (#5506974)
How do I control the speed? Turning the "Speeds" control up or down only seem to make it go really fast.
Re:Spirograph in HTML 5 by tete on Sunday April 07, 2013 @08:55AM (#5507045)
It's slow in the middle, cause I think you are just changing the direction, by maxing it out.
Re:Spirograph in HTML 5 by snifty on Saturday April 06, 2013 @09:05PM (#5505711)
dear hn, html5 != chrome
Re:Spirograph in HTML 5 by ChrisClark on Saturday April 06, 2013 @10:42PM (#5505896)
Works great in Firefox 19.0.2, I think that's pretty old.
Re:Spirograph in HTML 5 by fotbr on Saturday April 06, 2013 @11:04PM (#5505933)
Works great in FF 3.6.24, too. Yes, I dusted off an ancient testing virtual machine just to see if it would work.
Re:Spirograph in HTML 5 by lowboy on Saturday April 06, 2013 @09:25PM (#5505757)
No one has said that html5 == chrome. Does it not work on other browsers for you?
Re:Spirograph in HTML 5 by mlex on Saturday April 06, 2013 @09:46PM (#5505798)
The demo works fine for me on Nightly 23.0a1, which browser are you using?
Re:Spirograph in HTML 5 by fein on Saturday April 06, 2013 @10:09PM (#5505829)
Renders beautifully on Chrome 26. Which version are you using?
Re:Spirograph in HTML 5 by mikiem on Saturday April 06, 2013 @10:08PM (#5505827)
iPad and Samsung S3 working fine for me.
Re:Spirograph in HTML 5 by jmspring on Sunday April 07, 2013 @12:12AM (#5506085)
safari on mac no problem.