FastLED 3.10.8
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 89 of file tile2x2.cpp.hpp.

90 {
91 const vec2<u16> origin = from.origin();
92 at(0, 0) = {wrap(vec2<u16>(origin.x, origin.y), vec2<u16>(width, height)),
93 from.at(0, 0)};
94 at(0, 1) = {wrap(vec2<u16>(origin.x, origin.y + 1), vec2<u16>(width, height)),
95 from.at(0, 1)};
96 at(1, 0) = {wrap(vec2<u16>(origin.x + 1, origin.y), vec2<u16>(width, height)),
97 from.at(1, 0)};
98 at(1,
99 1) = {wrap(vec2<u16>(origin.x + 1, origin.y + 1), vec2<u16>(width, height)),
100 from.at(1, 1)};
101}
Entry & at(u16 x, u16 y) FL_NO_EXCEPT
static vec2< u16 > wrap(const vec2< u16 > &v, const vec2< u16 > &size) FL_NO_EXCEPT
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186

References at(), fl::FL_NO_EXCEPT, fl::height, fl::width, fl::vec2< T >::x, and fl::vec2< T >::y.

+ Here is the call graph for this function: