FastLED 3.9.15
|
Definition at line 124 of file wave_simulation.h.
#include <wave_simulation.h>
Public Member Functions | |
WaveSimulation2D (uint32_t W, uint32_t H, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, float dampening=6.0f) | |
~WaveSimulation2D ()=default | |
int | getDampenening () const |
float | getf (size_t x, size_t y) const |
uint32_t | getHeight () const |
int16_t | geti16 (size_t x, size_t y) const |
bool | geti16All (size_t x, size_t y, int16_t *curr, int16_t *prev, int16_t *diff) const |
int16_t | geti16Previous (size_t x, size_t y) const |
int8_t | geti8 (size_t x, size_t y) const |
float | getSpeed () const |
uint8_t | getu8 (size_t x, size_t y) const |
uint32_t | getWidth () const |
bool | has (size_t x, size_t y) const |
void | init (uint32_t width, uint32_t height, SuperSample factor, float speed, int dampening) |
WaveSimulation2D_Real & | real () |
void | setDampening (int damp) |
void | setEasingMode (U8EasingFunction mode) |
void | setExtraFrames (uint8_t extra) |
void | setf (size_t x, size_t y, float value) |
void | setHalfDuplex (bool on) |
void | seti16 (size_t x, size_t y, int16_t value) |
void | setSpeed (float speed) |
void | setSuperSample (SuperSample factor) |
void | update () |
Private Attributes | |
uint8_t | extraFrames = 0 |
U8EasingFunction | mU8Mode = WAVE_U8_MODE_LINEAR |
uint32_t | multiplier |
uint32_t | outerHeight |
uint32_t | outerWidth |
fl::scoped_ptr< WaveSimulation2D_Real > | sim |