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

◆ noExpand()

void fl::ScaleUp::noExpand ( const CRGB * input,
CRGB * output,
uint16_t width,
uint16_t height )
private

Definition at line 80 of file scale_up.cpp.

81 {
82 uint16_t n = mXyMap.getTotal();
83 for (uint16_t w = 0; w < width; w++) {
84 for (uint16_t h = 0; h < height; h++) {
85 uint16_t idx = mXyMap.mapToIndex(w, h);
86 if (idx < n) {
87 output[idx] = input[w * height + h];
88 }
89 }
90 }
91}
XYMap mXyMap
Definition fx2d.h:29

References fl::Fx2d::mXyMap.

Referenced by draw().

+ Here is the caller graph for this function: