block by alexmacy 5f9ba684d2c9ec68392dee86ff9636bb

Voronoi Shuffling v3

Full Screen

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

index.html