Blender, Procedural, 3d Modeling, Geometry Node, Coding.
What you are basically doing is measuring per pixel, the distance to the closest red dot. At the half point between two cell centers, is when a pixel (or vertex if you are doing displacement) switches between belonging from one cell to the other. Blender has a node for generating Voronoi, both in