Still Moving Designs © 2010 - 2018 • Contact:


Voronoi 1

Controls: UI: Left Click pause/resume. Right Click reset defaults. [f] Toggle frame-by-frame on left-click.
[s] Toggle sites display.
[a] Toggle transparency (offline version).
"]" "[" Increment/Decrement Sites.
[+][-] Linear distance shift.
[>][<] Scaler distance shift.

Description: Continuing my exploration of "Banned Algorithms," I decided I needed to learn to code a Voronoi Diagram from scratch. I used the simple brute force method, where every pixel checks its distance to the array of Voronoi sites, finds the closest, and sets its color accordingly. Especially slow in an online context, offline version gets around 20fps on my system.

Credits: Thanks to for pointing me in the right direction.

Code: Click here.