Skip to contents

This function generates a generative art ggplot object from sine and cosine waves.

Usage

waves(
  a = 23,
  b = 6,
  linewidth = 0.5,
  main_col = "black",
  bg_col = "white",
  s = 2021
)

Arguments

a

sine wave parameter. Default 23.

b

Cosine wave parameter. Default 6.

linewidth

Width of lines. Default 0.5.

main_col

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

bg_col

Background colour. Default "white".

s

Seed value. Default 2021.

Value

A ggplot object.