This function paints watercolors on a canvas.
canvas_watercolors(
colors,
background = "#fafafa",
layers = 50,
depth = 2,
resolution = 250
)
a string specifying the color used for the artwork.
a character specifying the color used for the background.
the number of layers of each color.
the maximum depth of the recursive algorithm.
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.
A ggplot
object containing the artwork.
https://tylerxhobbs.com/essays/2017/a-generative-approach-to-simulating-watercolor-paints
colorPalette
# \donttest{
set.seed(1)
# Simple example
canvas_watercolors(colors = colorPalette("tuscany2"))
# }