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

◆ scale()

void fl::Tile2x2_u8::scale ( uint8_t scale)

Definition at line 24 of file tile2x2.cpp.

24 {
25 // scale the tile
26 if (scale == 255) {
27 return;
28 }
29 for (int x = 0; x < 2; ++x) {
30 for (int y = 0; y < 2; ++y) {
31 uint16_t value = at(x, y);
32 at(x, y) = (value * scale) >> 8;
33 }
34 }
35}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83
void scale(uint8_t scale)
Definition tile2x2.cpp:24
uint8_t & at(int x, int y)
Definition tile2x2.h:35

References at(), scale(), x, and y.

Referenced by Tile2x2_u8(), loop(), fl::XYPathRenderer::rasterize(), and scale().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: