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