FastLED 3.10.8
Loading...
Searching...
No Matches

◆ scale()

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

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

44 {
45 // scale the tile
46 if (scale == 255) {
47 return;
48 }
49 for (int x = 0; x < 2; ++x) {
50 for (int y = 0; y < 2; ++y) {
51 u16 value = at(x, y);
52 at(x, y) = (value * scale) >> 8;
53 }
54 }
55}
u8 & at(int x, int y) FL_NO_EXCEPT
Definition tile2x2.h:34
void scale(u8 scale) FL_NO_EXCEPT
constexpr int type_rank< T >::value

References at(), fl::FL_NO_EXCEPT, 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: