Click to add a point. Change the "Res" variable to change the renders resolution. Set the "Mode" variable to 0 to use Euclidean distance, or set it to 1 to use Manhattan distance Press space to re-render the diagram. https://en.wikipedia.org/wiki/Voronoi_diagram