Skip to content

Commit

Permalink
0.1.1 docs πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
hypebright committed Mar 4, 2024
1 parent 9e55a61 commit 98841c0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: fireworks
Title: Fireworks for your 'Shiny' application
Version: 0.1.0
Version: 0.1.1
Authors@R:
person("Veerle", "van Leemput", , "[email protected]", role = c("aut", "cre"))
Description: 'fireworks' is a wrapper around the 'fireworks-js' library that contains
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# fireworks 0.1.1

* Added a `fadeOut` argument to the `stop` method to control whether the fireworks fade out or disappear instantly. The effects lasts 2000 ms to remove the fireworks in a natural manner. Thanks to @laresbernardo for the suggestion in issue #1. Example can be found in `inst/examples/02-fireworks-on-demand.R`.
* Added a `NEWS.md` file to track changes to the package.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ fw <- Fireworks$new(options = list(hue = list(min = 0, max = 45),
traceSpeed = 5))
```

### Natural stop effect

By default, fireworks are removed immediately when `stop` is called. You can add a natural stop effect by setting `fadeOut = TRUE`:

```r
fw$stop(fadeOut = TRUE)
```

The effects takes 2000ms and looks changes the intensity of the fireworks down to 1:

![](./inst/images/fireworks-fadeout.gif)

## Acknowledgements

As this is a wrapper around an existing library, I want to give credit to the original authors:
Expand Down
Binary file added inst/images/fireworks-fadeout.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98841c0

Please sign in to comment.