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

◆ scale()

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

Definition at line 43 of file tile2x2.cpp.hpp.

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}
u8 & at(int x, int y)
Definition tile2x2.h:34
void scale(u8 scale)
constexpr int type_rank< T >::value

References at(), scale(), fl::type_rank< T >::value, fl::x, and fl::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: