Skip to main content
100%

Superformula

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 11, 2011

The Superformula gallery displays 22 distinct geometric shapes generated from parametric equations, with each small blue shape representing a named superformula variant. Clicking any small shape animates the large central square into that shape’s form via a 500-millisecond `transition` that interpolates the path’s control points using `d3.superformula` and `.attr("d", …)`. The visualization uses D3 v3 with SVG rendering, leveraging ordinal scaling for shape placement and both small and large path elements styled with CSS hover effects.

AI-generated description

Christophe Viau implemented a new shape type as a D3 plugin based on superformulas. One nice property of these shapes is that you can easily tween between two shapes by simply interpolating the control points. Click on the blue shapes to try it!

gpl-3.0 Licensed

Similar vizzes