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

◆ rasterize_internal()

void fl::XYRasterU8Sparse::rasterize_internal ( const Tile2x2_u8 & tile,
const rect< u16 > * optional_bounds = nullptr )

Definition at line 49 of file raster_sparse.cpp.hpp.

50 {
51 const vec2<u16> &origin = tile.origin();
52 for (int x = 0; x < 2; ++x) {
53 for (int y = 0; y < 2; ++y) {
54 u8 value = tile.at(x, y);
55 if (!value) {
56 continue;
57 }
58 int xx = origin.x + x;
59 int yy = origin.y + y;
60 if (optional_bounds && !optional_bounds->contains(xx, yy)) {
61 continue;
62 }
63 write(vec2<u16>(xx, yy), value);
64 }
65 }
66}
void write(const vec2< u16 > &pt, u8 value) FL_NO_EXCEPT
unsigned char u8
Definition stdint.h:131
constexpr int type_rank< T >::value

References fl::FL_NO_EXCEPT, fl::type_rank< T >::value, write(), fl::vec2< T >::x, fl::x, fl::vec2< T >::y, and fl::y.

Referenced by rasterize(), and rasterize().

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