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

◆ Tile2x2_u8_wrap() [3/4]

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

Definition at line 88 of file tile2x2.cpp.

89 {
90 const vec2<u16> origin = from.origin();
91 at(0, 0) = {wrap(vec2<u16>(origin.x, origin.y), vec2<u16>(width, height)),
92 from.at(0, 0)};
93 at(0, 1) = {wrap(vec2<u16>(origin.x, origin.y + 1), vec2<u16>(width, height)),
94 from.at(0, 1)};
95 at(1, 0) = {wrap(vec2<u16>(origin.x + 1, origin.y), vec2<u16>(width, height)),
96 from.at(1, 0)};
97 at(1,
98 1) = {wrap(vec2<u16>(origin.x + 1, origin.y + 1), vec2<u16>(width, height)),
99 from.at(1, 1)};
100}
Entry & at(u16 x, u16 y)
Definition tile2x2.cpp:65
static vec2< u16 > wrap(const vec2< u16 > &v, const vec2< u16 > &size)
Definition tile2x2.cpp:15

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: