attraction | R Documentation |
This function generates a generative art ggplot object using strange attractors.
attraction(
n = 5000,
a = -3,
b = 1,
c = 0.5,
d = -1,
main_col = "black",
bg_col = "white"
)
n |
Number of points. Default 5000. |
a |
Parameter. Default -3. |
b |
Parameter. Default 1. |
c |
Parameter. Default 0.5. |
d |
Parameter. Default -1. |
main_col |
Vector of colours (or single colour). Default |
bg_col |
Background colour. Default |
A ggplot object.
attraction(n = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.