My entry for the 2012 JS1K competition
JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
compress.sh
index.html
lattice-min.js
lattice.js

README.md

Lattice of Love

My entry for the 2012 JS1k competition. An interactive heart-shaped spirograph.

The lattice pattern is based on a hypotrochoid, but instead of rolling the inner cog around a circle it's rolled around a heart shape, described using the heart-curve equation.

813 bytes compressed, using the Google Closure compiler.

You can find the entry on the JS1k website here: http://js1k.com/2012-love/details/1232