Given an input image, and the number of voronoi partitions to create, this program imitates a flood fill algorithm starting from a randomly generated set of center coordinates in the image to create the specified number of partitions in the image. The results are interesting artistic images where every pixel in a given voronoi partition have the same color.
git clone https://github.com/shlyyzy/voronoiArt.git
stack setup
stack build
stack ghci
:set args <input image path> <output image path> <number of voronoi partitions>
main