generate_lines_and_rectangles: Generate lines and rectangles

View source: R/lines_and_rectangles.R

generate_lines_and_rectanglesR Documentation

Generate lines and rectangles

Description

Generate lines and rectangles

Usage

generate_lines_and_rectangles(
  num_lines,
  p_v_line,
  max_line_size,
  num_rect,
  max_rect_size,
  seed
)

Arguments

num_lines

an integer value >=0, the number of lines in the artwork; if unspecified, a value will be chosen randomly

p_v_line

a numeric value between 0 and 1, the probability that each line will be vertical as opposed to horizontal; if unspecified, a value will be chosen randomly

max_line_size

a numeric value between 0 and 1, the maximum size of each line; if unspecified, a value will be chosen randomly

num_rect

an integer value >=0, the number of rectangles in the artwork; if unspecified, a value will be chosen randomly

max_rect_size

a numberic value between 0 and 1, the maximum size of each rectangle; if unspecified, a value will be chosen randomly

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.