knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The spiro package creates spirographs in the .svg file format. There are functions in spiro that transform and animate your spirographs after they have been created.
You can install spiro from github with:
# install.packages("remotes") remotes::install_github("wjschne/spiro")
Here is a basic spirograph.
library(spiro) spiro( fixed_radius = 11, cycling_radius = 4, pen_radius = 9, file = "example.svg")
Please note that the spiro project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.