|
FastLED 3.9.15
|
Definition at line 43 of file wave_simulation.h.
#include <wave_simulation.h>
Collaboration diagram for fl::WaveSimulation1D:Public Member Functions | |
| WaveSimulation1D (u32 length, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, int dampening=6) | |
| ~WaveSimulation1D ()=default | |
| int | getDampenening () const |
| float | getf (fl::size x) const |
| i16 | geti16 (fl::size x) const |
| bool | geti16All (fl::size x, i16 *curr, i16 *prev, i16 *diff) const |
| i16 | geti16Previous (fl::size x) const |
| i8 | geti8 (fl::size x) const |
| u32 | getLength () const |
| float | getSpeed () const |
| u8 | getu8 (fl::size x) const |
| bool | has (fl::size x) const |
| void | init (u32 length, SuperSample factor, float speed, int dampening) |
| WaveSimulation1D_Real & | real () |
| void | setDampening (int damp) |
| void | setEasingMode (U8EasingFunction mode) |
| void | setExtraFrames (u8 extra) |
| void | setf (fl::size x, float value) |
| void | setHalfDuplex (bool on) |
| void | setSpeed (float speed) |
| void | setSuperSample (SuperSample factor) |
| void | update () |
Private Attributes | |
| u8 | mExtraFrames = 0 |
| u32 | mMultiplier |
| u32 | mOuterLength |
| fl::unique_ptr< WaveSimulation1D_Real > | mSim |
| U8EasingFunction | mU8Mode = WAVE_U8_MODE_LINEAR |