An open API service indexing awesome lists of open source software.

https://github.com/nylen/d3-spirograph

d3.js spirograph - https://nylen.io/d3-spirograph/
https://github.com/nylen/d3-spirograph

Last synced: about 1 year ago
JSON representation

d3.js spirograph - https://nylen.io/d3-spirograph/

Awesome Lists containing this project

README

          

## d3-spirograph

This is a d3.js simulation of the classic
[Spirograph toy](https://en.wikipedia.org/wiki/Spirograph).

The application draws an SVG of a
[hypotrochoid curve](https://en.wikipedia.org/wiki/Hypotrochoid)
using multiple `path` elements rather than just one with a stroke and no fill.
It's designed this way so that the resulting SVGs can be converted to
3D-printable files using the
[`paths2openscad` Inkscape extension](https://github.com/l0b0/paths2openscad).
This works better with simpler curves and thicker lines: