canvas_cobweb {aRtsy}R Documentation

Draw Cobwebs

Description

This function draws many Fibonacci spirals shifted by random noise from a normal distribution.

Usage

canvas_cobweb(colors, background = "#fafafa", lines = 300,
              iterations = 100)

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.

lines

the number of lines to draw.

iterations

the number of iterations of the algorithm.

Value

A ggplot object containing the artwork.

Author(s)

Koen Derks, koen-derks@hotmail.com

See Also

colorPalette

Examples


set.seed(1)

# Simple example
canvas_cobweb(colors = colorPalette("neon1"), background = "black")



[Package aRtsy version 0.1.8 Index]