This function draws lissajous curves with points connected via a k-nearest neighbor approach.
canvas_lissajous(
colors,
background = "#000000",
iterations = 2,
neighbors = 50,
noise = FALSE
)
a string or character vector specifying the color(s) used for the artwork.
a character specifying the color used for the background.
a positive integer specifying the number of iterations of the algorithm.
a positive integer specifying the number of neighbors a block considers when drawing the connections.
logical. Whether to add perlin noise to the coordinates of the nodes.
A ggplot
object containing the artwork.
colorPalette
# \donttest{
set.seed(13)
# Simple example
canvas_lissajous(colors = colorPalette("blossom"))
# }