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

57 {
58 const vec2<u16> origin = from.origin();
59 at(0, 0) = {wrap_x(vec2<u16>(origin.x, origin.y), width), from.at(0, 0)};
60 at(0, 1) = {wrap_x(vec2<u16>(origin.x, origin.y + 1), width), from.at(0, 1)};
61 at(1, 0) = {wrap_x(vec2<u16>(origin.x + 1, origin.y), width), from.at(1, 0)};
62 at(1, 1) = {wrap_x(vec2<u16>(origin.x + 1, origin.y + 1), width),
63 from.at(1, 1)};
64}
Entry & at(u16 x, u16 y) FL_NO_EXCEPT
static vec2< u16 > wrap_x(const vec2< u16 > &v, const u16 width) FL_NO_EXCEPT
u8 width
Definition blur.h:186

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

+ Here is the call graph for this function: