powered by
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 ggplot object containing the artwork.
ggplot
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.
Koen Derks, koen-derks@hotmail.com
https://en.wikipedia.org/wiki/Lissajous_curve
colorPalette
# \donttest{ set.seed(13) # Simple example canvas_lissajous(colors = colorPalette("blossom")) # }
Run the code above in your browser using DataLab