Skip to content

Commit 32a4156

Browse files
committed
fix spelling
1 parent 415adab commit 32a4156

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: aRt
22
Title: Generative Art with R
3-
Version: 1.3.0
3+
Version: 1.3.1
44
Authors@R:
55
person(given = "Nicola",
66
family = "Rennie",

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## aRt 1.3.1
2+
3+
* Fix spelling of `granularity` in `flow_fields()`
4+
15
## aRt 1.3.0
26

37
* add {lwgeom}, {cowplot}, {sf}, {grdevices} to Imports

R/flow_fields.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' See also https://www.williamrchase.com/post/flow-fields-12-months-of-art-september/
55
#'
66
#' @param n Number of lines. Default 10000.
7-
#' @param granualarity How fine to draw the grid. Default 1000.
7+
#' @param granularity How fine to draw the grid. Default 1000.
88
#' @param x_freq Frequency of x simplex noise. Default 1.
99
#' @param y_freq Frequency of y simplex noise. Default 1.
1010
#' @param alpha Transparency of lines. Default 1.
@@ -16,7 +16,7 @@
1616
#' @export
1717

1818
flow_fields <- function(n = 10000,
19-
granualarity = 1000,
19+
granularity = 1000,
2020
x_freq = 1,
2121
y_freq = 1,
2222
alpha = 1,

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ fading(n_layers=10, n_points=10, col_palette=rcartocolor::carto_pal(n = 7, "Suns
288288
The `flow_fields()` function produces generative art using particle traces. These functions are inspired by a blog post by [Will Chase](https://www.williamrchase.com/post/flow-fields-12-months-of-art-september/).
289289

290290
``` r
291-
flow_fields(n = 10000, granualarity = 1000, x_freq = 1, y_freq = 1, alpha = 1, line_col = c("#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"), bg_col = "lightgrey", s = 1234)
292-
flow_fields(n = 10000, granualarity = 1000, x_freq = 1, y_freq = 1, alpha = 0.3, line_col = "black", bg_col = "white", s = 1234)
293-
flow_fields(n = 10000, granualarity = 1000, x_freq = 3, y_freq = 0.2, alpha = 1, line_col = c("#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"), bg_col = "lightgrey", s = 1234)
291+
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)
292+
flow_fields(n = 10000, granularity = 1000, x_freq = 1, y_freq = 1, alpha = 0.3, line_col = "black", bg_col = "white", s = 1234)
293+
flow_fields(n = 10000, granularity = 1000, x_freq = 3, y_freq = 0.2, alpha = 1, line_col = c("#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"), bg_col = "lightgrey", s = 1234)
294294
```
295295
<p align="center">
296296
<img src="https://github.com/nrennie/aRt/blob/main/man/figures/flow_fields1.jpeg?raw=true" width="30%">

man/flow_fields.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)