FastLED 3.9.15
Loading...
Searching...
No Matches
fl::FlowFieldFPState Struct Reference

Detailed Description

SoA (Structure-of-Arrays) state for FlowFieldFP.

All grid arrays are sized to (W*H + 3) & ~3 (padded to next multiple of 4) so SIMD-width loads never read past the allocation.

Color values are stored as s16x16 raw i32 values. Range [0, 255.0] maps to raw [0, 255 << 16] = [0, 16711680].

Definition at line 153 of file flowfield.h.

#include <flowfield.h>

+ Collaboration diagram for fl::FlowFieldFPState:

Public Member Functions

 FlowFieldFPState () FL_NOEXCEPT
 
 FL_ALIGNAS (16) fl
 
void init (int w, int h)
 

Public Attributes

fl::vector< fl::i32 > b
 
int count = 0
 
bool fade_lut_initialized = false
 
fl::vector< fl::i32 > g
 
int height = 0
 
fl::vector< fl::i32 > r
 
fl::vector< fl::i32 > tb
 
fl::vector< fl::i32 > tg
 
fl::vector< fl::i32 > tr
 
int width = 0
 
fl::vector< fl::i32 > x_prof
 
fl::vector< fl::i32 > y_prof
 

The documentation for this struct was generated from the following file: