Float-precision flow field implementation.
- Examples
- FlowField.ino.
Definition at line 295 of file flowfield.h.
|
| | FlowFieldFloat (const XYMap &xyMap, const Params ¶ms=Params()) FL_NO_EXCEPT |
| |
| fl::string | fxName () const FL_NO_EXCEPT override |
| |
| | ~FlowField () FL_NO_EXCEPT override=default |
| |
| void | draw (DrawContext context) FL_NO_EXCEPT override |
| | Handles timing, then delegates to drawImpl().
|
| |
| const Params & | getParams () const FL_NO_EXCEPT |
| |
| Params & | getParams () FL_NO_EXCEPT |
| |
| const NoiseBias2D & | noiseBias () const FL_NO_EXCEPT |
| |
| NoiseBias2D & | noiseBias () FL_NO_EXCEPT |
| |
| void | noisePunch (float amplitude=1.0f, BumpShape shape=BumpShape::HalfSine) FL_NO_EXCEPT |
| | Trigger a noise punch on both axes at center with proportional width.
|
| |
| void | noisePunchX (float center, float width, float amplitude=1.0f, BumpShape shape=BumpShape::HalfSine) FL_NO_EXCEPT |
| | Trigger a noise punch on the X axis (columns).
|
| |
| void | noisePunchY (float center, float width, float amplitude=1.0f, BumpShape shape=BumpShape::HalfSine) FL_NO_EXCEPT |
| | Trigger a noise punch on the Y axis (rows).
|
| |
| void | setColorShift (float speed) FL_NO_EXCEPT |
| |
| void | setDotCount (int count) FL_NO_EXCEPT |
| |
| void | setEmitterMode (int mode) FL_NO_EXCEPT |
| |
| void | setEndpointSpeed (float speed) FL_NO_EXCEPT |
| |
| void | setFlowAmplitudeX (float amp) FL_NO_EXCEPT |
| |
| void | setFlowAmplitudeY (float amp) FL_NO_EXCEPT |
| |
| void | setFlowShift (float shift) FL_NO_EXCEPT |
| |
| void | setFlowSpeedX (float speed) FL_NO_EXCEPT |
| |
| void | setFlowSpeedY (float speed) FL_NO_EXCEPT |
| |
| void | setNoiseFrequency (float freq) FL_NO_EXCEPT |
| |
| void | setNoiseFrequencyX (float freq) FL_NO_EXCEPT |
| |
| void | setNoiseFrequencyY (float freq) FL_NO_EXCEPT |
| |
| void | setPersistence (float halfLife) FL_NO_EXCEPT |
| |
| void | setReverseXProfile (bool rev) FL_NO_EXCEPT |
| |
| void | setShowFlowVectors (bool show) FL_NO_EXCEPT |
| |
| void | setSpeed (float speed) FL_NO_EXCEPT |
| | Set time speed/scale (1.0 = normal, 0.5 = half speed, etc.)
|
| |
| float | speed () const FL_NO_EXCEPT |
| |
| | Fx2d (const XYMap &xyMap) FL_NO_EXCEPT |
| |
| u16 | getHeight () const FL_NO_EXCEPT |
| |
| u16 | getWidth () const FL_NO_EXCEPT |
| |
| const XYMap & | getXYMap () const FL_NO_EXCEPT |
| |
| XYMap & | getXYMap () FL_NO_EXCEPT |
| |
| void | setXYMap (const XYMap &xyMap) FL_NO_EXCEPT |
| |
| u16 | xyMap (u16 x, u16 y) const FL_NO_EXCEPT |
| |
| | Fx (u16 numLeds) FL_NO_EXCEPT |
| |
| u16 | getNumLeds () const FL_NO_EXCEPT |
| |
| virtual bool | hasFixedFrameRate (float *fps) const FL_NO_EXCEPT |
| |
| virtual void | pause (fl::u32 now) FL_NO_EXCEPT |
| |
| virtual void | resume (fl::u32 now) FL_NO_EXCEPT |
| |