sketchpad is a lightweight drawing system for generative art, built on S7 classes and grid graphics. It provides a small set of drawable shapes (shape_circle(), shape_blob(), shape_ribbon(), shape_twist()) that can be composed into a sketch() and rendered with draw().
Installation
You can install the development version of sketchpad from GitHub with:
# install.packages("pak")
pak::pak("djnavarro/sketchpad")
Example
library(sketchpad)
palette <- c(
"#e50000", "#ff8d00", "#ffee00",
"#028121", "#004cff", "#770088"
)
draw(shape_blobs(
x = cos(seq(0, pi * 5 / 3, length.out = 6)),
y = sin(seq(0, pi * 5 / 3, length.out = 6)),
n = 500L,
fill = palette,
color = palette
))
