shatter | R Documentation |
This function generates a generative art ggplot object using polygons.
shatter(
n_x = 25,
n_y = 25,
decay = 0.8,
colour = "black",
bg_col = "gray97",
s = 1234
)
n_x |
Number of polygons per row. Default 25. |
n_y |
Number of polygons per column. Default 25. |
decay |
Numeric between 0 and 1 specifying the rate of decay if square shapes. Default 0.8. |
colour |
Single colour for fill colour of polygons. Default "black". |
bg_col |
Single colour for background. Default "gray97". |
s |
Seed value. Default 1234. |
A ggplot object.
shatter()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.