Add and move points with your mouse.
This sketch may be slow at times.
This sketch draws a Voronoi Diagram. This partitions a plane into regions defined by the black dots. Each point on the plain gets associated with the closest black point.
(This can be defined both with the eucledian distance and manhattan distance)