All examples By author By category About

molecule

Voronoi Shuffling v3

I realized that the annoying reshaping transition was a result of the new polygon having more sides than the one it was transitioning from. This meant that rather than transition the side from somewhere along the path of the old polygon, it would transition from off screen. To solve this, I included a function that basically draws extra points on top of eachother to give the polygon more sides than necessary - you can't see them, but they're there if you inspect the elements.

The previous versions are here: Voronoi Shuffling v1 & Voronoi Shuffling v2

forked from alexmacy's block: Voronoi Shuffling v3