Skip to content

Commit

Permalink
Improve flame function
Browse files Browse the repository at this point in the history
  • Loading branch information
koenderks committed Nov 20, 2024
1 parent b1c6ade commit d5daa57
Show file tree
Hide file tree
Showing 6 changed files with 468 additions and 363 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: aRtsy
Title: Generative Art with 'ggplot2'
Description: Provides algorithms for creating artworks in the 'ggplot2' language that incorporate some form of randomness.
Version: 1.0.0
Date: 2024-11-05
Version: 1.0.1
Date: 2024-11-20
Authors@R:
person(given = "Koen",
family = "Derks",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# aRtsy 1.0.1

- Faster runtime of the `canvas_flame()` funtion.

# aRtsy 1.0.0

- Fixed a bug in the `canvas_flame()` code when `blend = FALSE` and `weighted = TRUE`.
Expand Down
6 changes: 3 additions & 3 deletions R/canvas_flame.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ canvas_flame <- function(colors,
stats::runif(4, 0, 1), # padj.a, pdj.b, pdj.c, pdj.d
stats::runif(1, 0, 1), # rings2.val
stats::runif(1, 10, 80), stats::runif(1, 1, 10), # perspective.angle, perspective.dist
stats::runif(1, 1, 5), stats::runif(1, 0.1, 1), # juliaN.power, juliaN.dist
stats::runif(1, 1, 5), stats::runif(1, 0.1, 1), # juliaScope.power, juliaScope.dist
stats::runif(1, -5, 5), stats::runif(1, 0.1, 1), # juliaN.power, juliaN.dist
stats::runif(1, -5, 5), stats::runif(1, 0.1, 1), # juliaScope.power, juliaScope.dist
stats::runif(1, 0, 360), stats::runif(1, 0.5, 10), # radialBlur.angle, v_36
sample(x = 3:8, size = 1), stats::runif(1, 1, 360), stats::runif(1, 0, 1), # pie.slices, pie.rotation, pie.thickness
stats::runif(1, 1, 2), sample(3:9, size = 1), sample(3:9, size = 1), stats::runif(1, 0, 1), # ngon.power, ngon.sides, ngon.corners, ngon.circle
stats::runif(1, 1, 5), sample(3:9, size = 1), sample(3:9, size = 1), stats::runif(1, 0, 1), # ngon.power, ngon.sides, ngon.corners, ngon.circle
stats::runif(1, -1.5, -0.5), stats::runif(1, 0.5, 1.5), # curl.c1, curl.c2
stats::runif(1, -1, 1), stats::runif(1, -1, 1), # rectangles.x, rectangles.y
stats::runif(1, -1, 1), # v_41
Expand Down
7 changes: 3 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## aRtsy version 1.0.0
This is a submission for aRtsy version 1.0.0. In this version I have:
## aRtsy version 1.0.1
This is a submission for aRtsy version 1.0.1. In this version I have:

* Fixed a bug in the c++ code.
* Improved documentation.
* Improved performance of c++ code.

## Test environments
* Windows install, (on github actions) R release
Expand Down
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bibentry(bibtype = "Manual",
title = "aRtsy: Generative Art with 'ggplot2'",
author = person("Koen", "Derks"),
year = "2024",
note = "R package version 1.0.0",
note = "R package version 1.0.1",
url = "https://CRAN.R-project.org/package=aRtsy",
doi = "10.32614/CRAN.package.aRtsy",
textVersion = "Derks, K. (2024). aRtsy: Generative Art with 'ggplot2'. R package version 1.0.0. https://doi.org/10.32614/CRAN.package.aRtsy")
textVersion = "Derks, K. (2024). aRtsy: Generative Art with 'ggplot2'. R package version 1.0.1. https://doi.org/10.32614/CRAN.package.aRtsy")
Loading

0 comments on commit d5daa57

Please sign in to comment.