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

◆ scale()

void fl::Tile2x2_u8::scale ( u8 scale)

Definition at line 43 of file tile2x2.cpp.

43 {
44 // scale the tile
45 if (scale == 255) {
46 return;
47 }
48 for (int x = 0; x < 2; ++x) {
49 for (int y = 0; y < 2; ++y) {
50 u16 value = at(x, y);
51 at(x, y) = (value * scale) >> 8;
52 }
53 }
54}
int y
Definition simple.h:93
int x
Definition simple.h:92
u8 & at(int x, int y)
Definition tile2x2.h:39
void scale(u8 scale)
Definition tile2x2.cpp:43

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: