#include <FastLED.h>
#include "fl/fx/1d/particles.h"
#include "fl/math/screenmap.h"
#include "fl/ui/ui.h"
Go to the source code of this file.
|
| void | loop () |
| |
| fl::Particles1d | particles (NUM_LEDS, PARTICLE_MAX, PARTICLE_GROUPS) |
| |
| void | setup () |
| |
| fl::UICheckbox | uiAutoSpawn ("Auto Spawn", true) |
| |
| fl::UISlider | uiBrightness ("Brightness", 64, 0, 255, 1) |
| |
| fl::UICheckbox | uiCyclical ("Cyclical", true) |
| |
| fl::UISlider | uiFadeAmount ("Trail Length", 2, 0, 10, 1) |
| |
| fl::UISlider | uiLifetime ("Avg Lifetime (sec)", 4.0, 0.5, 8.0, 0.5) |
| |
| fl::UISlider | uiOverdrawCount ("Overdraw Count", 20, 1, 50, 1) |
| |
| fl::UIButton | uiSpawnButton ("Spawn Particle") |
| |
| fl::UISlider | uiSpawnInterval ("Spawn Interval (sec)", 2.0, 0.1, 10.0, 0.1) |
| |
| fl::UISlider | uiSpeed ("Avg Speed", 1.0, 0.1, 3.0, 0.1) |
| |