Generative Art
This week we are going to explore creating art from code. There is no better person to learn generative art from than Danielle Navarro. We are going to use Danielle’s Art from Code workshop materials to learn techniques for creating different types of generative art.
Making Art from Code
Work through “Session 1” of Danielle’s workshop materials. By the end of this tutorial you should:
- create a piece of art using the
mpg
data set - use the
polar_art()
function to generate a piece of art - modify the
polar_art()
function to change the appearance of your art - use the
sample_canva()
function to generate a piece of art - try writing a
sample_named_colours()
function that generates a random palette ofn
colors from (colours(distinct = TRUE)
) - see what type of art you can make using only the
sample_canva()
,sample_data()
andpolar_styled_plot()
functions
The “materials” folder Danielle refers to can be found here: https://github.com/rstudio-conf-2022/art-from-code
Exploring
For our next stage, I want you to choose at least one additional technique to explore. The technique you choose will likely be the technique you use to create your art for Lab 9, so think about what kind of art you want to make! If you’re not sure what kind of art you want to make, here is a gallery of art Danielle has created with these techniques.
Choose at least one of the following: