Spirograph
in
Share your Work
•
9 months ago
It's easy to have fun and make pretty patterns with sines and cosines, but mimicing a spriograph more faithfully I've found to be quite involved.
My first attempt was all lines and line intersection - I'm quite fond of it, but feel it wasn't really the right approach.
http://www.openprocessing.org/sketch/84184
(JavaScript)
For my second attempt I made life easier for myself by using the Geomerative library, this time the shapes are curves and they just follow each others perimeters.
http://www.openprocessing.org/sketch/85326
(Java)
How would you go about implementing a spirograph?
I'm asking because I'm not completely happy with either implementation. The second is less accessible because it only runs in Java-mode, and I confess I'm not entirely comfortable with Geomerative's GPL licence.
Also bezier-curves are very fiddly to set up. I'm tempted to try and improve Geomerative's SVG support (especially Inscape SVG), so you can just draw a couple of shapes in another app then import them and watch them make pretty patterns. (... I'm also completely untempted to do a partial-port of Geomerative to JavaScript... but you never know, I might get bored enough one of these days).
Thanks for your feedback,
Best wishes,
Antony
My first attempt was all lines and line intersection - I'm quite fond of it, but feel it wasn't really the right approach.
http://www.openprocessing.org/sketch/84184
(JavaScript)
For my second attempt I made life easier for myself by using the Geomerative library, this time the shapes are curves and they just follow each others perimeters.
http://www.openprocessing.org/sketch/85326
(Java)
How would you go about implementing a spirograph?
I'm asking because I'm not completely happy with either implementation. The second is less accessible because it only runs in Java-mode, and I confess I'm not entirely comfortable with Geomerative's GPL licence.
Also bezier-curves are very fiddly to set up. I'm tempted to try and improve Geomerative's SVG support (especially Inscape SVG), so you can just draw a couple of shapes in another app then import them and watch them make pretty patterns. (... I'm also completely untempted to do a partial-port of Geomerative to JavaScript... but you never know, I might get bored enough one of these days).
Thanks for your feedback,
Best wishes,
Antony