This function creates an artwork from randomly generated k-nearest neighbors noise.
k = 50,
n = 500,
resolution = 500
a string or character vector specifying the color(s) used for the artwork.
a positive integer specifying the number of nearest neighbors to consider.
a positive integer specifying the number of random data points to generate.
resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially.
ggplot object containing the artwork.