Skip to contents

This function generates a generative art ggplot object using strange attractors.

Usage

attraction(
  n = 5000,
  a = -3,
  b = 1,
  c = 0.5,
  d = -1,
  main_col = "black",
  bg_col = "white"
)

Arguments

n

Number of points. Default 5000.

a

Parameter. Default -3.

b

Parameter. Default 1.

c

Parameter. Default 0.5.

d

Parameter. Default -1.

main_col

Vector of colours (or single colour). Default "black".

bg_col

Background colour. Default "white".

Value

A ggplot object.