canvas_splits {aRtsy}R Documentation

Draw Split Lines

Description

This function draws split lines.

Usage

canvas_splits(
  colors,
  background = "#fafafa",
  iterations = 6,
  sd = 0.2,
  lwd = 0.05,
  alpha = 0.5
)

Arguments

colors

a string or character vector specifying the color(s) used for the artwork.

background

a character specifying the color used for the background (and the hole).

iterations

a positive integer specifying the number of iterations of the algorithm.

sd

a numeric value specifying the standard deviation of the angle noise.

lwd

a numeric value specifying the width of the lines.

alpha

a numeric value specifying the transparency of the lines.

Value

A ggplot object containing the artwork.

Author(s)

Koen Derks, koen-derks@hotmail.com

See Also

colorPalette

Examples


set.seed(2)

# Simple example
canvas_splits(colors = "black", sd = 0)

# Simple example
canvas_splits(colors = colorPalette("dark2"), background = "black", sd = 1)



[Package aRtsy version 0.2.4 Index]