knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", fig.align = "center", dpi = 300 )
The goal of StochasticArt is, naturally, to generate stochastic art! This package is really just a fun personal project, but perhaps it will find its way to some curious explorers who have not thought about ways in which R can be used to create visually interesting things.
You can install the development version of StochasticArt from GitHub with:
# install.packages("devtools") devtools::install_github("christopher-rowe/StochasticArt")
First, load the package.
library(StochasticArt)
Now try out some of the functions! If you don't specify a value to the seed
argument, a random seed
will be generated and printed to the console so that you can always regenerate a previous image.
Not specifying any arguments will always generate a random image, but I encourage you to mess around with some of the arguments to see how the output changes. And even better, check out the code underlying each of the functions!
generate_fabric(seed=53266553)
generate_lines_and_polygons(seed=83205155)
generate_perception_matrix(seed=58283814)
generate_lines_and_rectangles(seed=60828695)
generate_panels(seed=8694671)
generate_circles(seed=50942804)
generate_string_waves(frame='points', seed=69097986)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.