flow_fields | R Documentation |
This function generates a generative art ggplot object from using particle traces. See also https://www.williamrchase.com/post/flow-fields-12-months-of-art-september/
flow_fields(
n = 10000,
granularity = 1000,
x_freq = 1,
y_freq = 1,
alpha = 1,
line_col = c("#edf8fb", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d",
"#6e016b"),
bg_col = "lightgrey",
s = 1234
)
n |
Number of lines. Default 10000. |
granularity |
How fine to draw the grid. Default 1000. |
x_freq |
Frequency of x simplex noise. Default 1. |
y_freq |
Frequency of y simplex noise. Default 1. |
alpha |
Transparency of lines. Default 1. |
line_col |
Line colours. Vector (or single element) of colours. Default |
bg_col |
Background colour. Default |
s |
Seed value. Default 1234. |
A ggplot object.
flow_fields(n = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.