generate_circles: Create inner concentric circles

View source: R/circles.R

generate_circlesR Documentation

Create inner concentric circles

Description

Create inner concentric circles

Usage

generate_circles(
  num_circles,
  global_max_r,
  circle_gap_p,
  max_alpha,
  min_concentric_circles = 1,
  max_concentric_circles = 20,
  equal_concentric_spacing,
  num_colors,
  frame = F,
  seed
)

Arguments

num_circles

an integer value, the number of circles in the artwork

global_max_r

a numeric value, the maximum allowable radius of each circle

circle_gap_p

a numeric value, higher values increase the gap between each circle; technically, the radius of a new circle will have a max radius of (1 - circle_gap_p) multiplied by the distance from the center of the new circle to the edge of the nearest other circle

max_alpha

a numeric value between 0-1, the maximum alpha value for each circle

min_concentric_circles

an integer value, the minimum number of concentric circles within each circle

max_concentric_circles

an integer value, the maximum number of concentric circles within each circle

equal_concentric_spacing

a boolean value, set to true to make concentric circles evenly spaced

num_colors

an integer value, the number of colors in the artwork; each circle is randomly assigned a color from a pool of this size

frame

a boolean value, set to true to include a circular frame around the artwork

seed

a numeric value, the seed to initialize psuedo-randomness

Value

a random work of art as a ggplot object


christopher-rowe/StochasticArt documentation built on April 15, 2023, 3:59 a.m.