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

◆ Tile2x2_u8_wrap() [2/4]

fl::Tile2x2_u8_wrap::Tile2x2_u8_wrap ( const Tile2x2_u8 & from,
u16 width )

Definition at line 56 of file tile2x2.cpp.

56 {
57 const vec2<u16> origin = from.origin();
58 at(0, 0) = {wrap_x(vec2<u16>(origin.x, origin.y), width), from.at(0, 0)};
59 at(0, 1) = {wrap_x(vec2<u16>(origin.x, origin.y + 1), width), from.at(0, 1)};
60 at(1, 0) = {wrap_x(vec2<u16>(origin.x + 1, origin.y), width), from.at(1, 0)};
61 at(1, 1) = {wrap_x(vec2<u16>(origin.x + 1, origin.y + 1), width),
62 from.at(1, 1)};
63}
Entry & at(u16 x, u16 y)
Definition tile2x2.cpp:65
static vec2< u16 > wrap_x(const vec2< u16 > &v, const u16 width)
Definition tile2x2.cpp:20

References fl::Tile2x2_u8::at(), at(), fl::Tile2x2_u8::origin(), fl::vec2< T >::x, and fl::vec2< T >::y.

+ Here is the call graph for this function: