This function paints watercolors on a canvas.

canvas_watercolors(
  colors,
  background = "#fafafa",
  layers = 50,
  depth = 2,
  resolution = 250
)

Arguments

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.

Value

A ggplot object containing the artwork.

See also

colorPalette

Author

Koen Derks, koen-derks@hotmail.com

Examples

# \donttest{
set.seed(1)

# Simple example
canvas_watercolors(colors = colorPalette("tuscany2"))

# }