Skip to contents

This function creates generative art using faceted segments.

Usage

sunsets(
  num_bars = 8,
  n = 1000,
  col_palette = PrettyCols::prettycols("Lively"),
  bg_col = "#413C58",
  vertical = FALSE,
  fade_vertical = FALSE,
  alpha = 1,
  s = 2023
)

Arguments

num_bars

Number of bars. Default 8.

n

Number of lines per bar. Default 1000.

col_palette

Colour palette. Default PrettyCols::prettycols("Lively").

bg_col

Background colour. Default "#413C58".

vertical

Boolean indicating whether bars should be vertical. Default FALSE.

fade_vertical

Boolean indicating whether the colouring should be vertical. Default FALSE.

alpha

Transparency of coloured bars. Default 1.

s

Random seed. Default 2023.

Value

A ggplot object.