Skip to contents

This function generates a generative art ggplot object using spatial hexagons and Magick.

Usage

imploding_hexagon(
  n = 25000,
  size = 0.05,
  bg_col = "grey10",
  col_palette = grDevices::grey.colors(n = 10, start = 0.1, end = 0.9),
  random = TRUE,
  implode_factor = 0.5,
  s = 1234
)

Arguments

n

Number of points. Default 25000.

size

Size of points. Default 0.1.

bg_col

Background colour. Default "grey10".

col_palette

Colour palette. Default grDevices::grey.colors(n = 10, start = 0.1, end = 0.7).

random

Boolean. Should colours be arranged randomly or not? Default TRUE.

implode_factor

Image implode factor. Default 0.5.

s

Random seed. Default 123.

Value

A ggplot object.