This is a quick implementation of a voronoi diagram. Watch as it draws a voronoi diagram. Change the quality slider to change the quality and speed of the drawing process. (you may have to click the green flag again.) Explanation: it places a bunch of randomly spaced points (black dots), then iterates through the pixels on the screen and finds the nearest point, coloring it determined on which point is nearest and how close it is. See here for more info: https://en.wikipedia.org/wiki/Voronoi_diagram
Mar 26 2020: Added Chebyshev Distance Mar 20, 2020: Added option for Manhattan Distance Mar 18, 2020: Now with colors. ;)