Update README.md

This commit is contained in:
Rudis Muiznieks 2020-05-10 10:58:58 -05:00 committed by GitHub
parent d100f81f0c
commit a45066f9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,3 +20,5 @@ Takes optional `options` configuration object:
- `canvasId`: optional id of an existing canvas to apply the effect to - `canvasId`: optional id of an existing canvas to apply the effect to
If no existing `canvasId` is provided then the effect will be applied to the entire browser screen. If no existing `canvasId` is provided then the effect will be applied to the entire browser screen.
You can animate alpha changes with `fg.setAlpha(newValue, step)` where `step` is optional and will determine how quickly the fade in/out will occur.