Skip to main content
100%

Gist f4dd5c4b997e02efe9be

✓ Published0🌍 Public
11wheel
Last edited Aug 21, 2016
Created on Mar 24, 2016

Four animated SVGs show a square deforming as its four corner points move along a continuously shrinking path. Each panel uses a different rule for selecting the next point: constant interpolation, gradually increasing step size, random step length, and a step inversely proportional to the remaining distance. The code relies on `d3.select`, `transition`, and `setInterval`, drawing line segments with `path` elements while updating point positions via the geometric helper functions defined in `geomtry.js`.

AI-generated description

Similar vizzes