FastLED 3.9.15
Loading...
Searching...
No Matches

◆ at_splat()

Tile2x2_u8 fl::Corkscrew::at_splat ( uint16_t i) const

Definition at line 120 of file corkscrew.cpp.

120 {
121 if (i >= mOutput.mapping.size()) {
122 // Handle out-of-bounds access, possibly by returning a default
123 // Tile2x2_u8
124 return Tile2x2_u8();
125 }
126 // Use the splat function to convert the vec2f to a Tile2x2_u8
127 return splat(mOutput.mapping[i]);
128}
CorkscrewOutput mOutput
Definition corkscrew.h:154
Tile2x2_u8 splat(vec2f xy)
"Splat" as in "splat pixel rendering" takes a pixel value in float x,y coordinates and "splats" it in...
Definition splat.cpp:14

References mOutput, and fl::splat().

+ Here is the call graph for this function: