MCPcopy Create free account
hub / github.com/FastLED/FastLED / wrap_x

Function wrap_x

src/fl/gfx/tile2x2.cpp.hpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static vec2<u16> wrap_x(const vec2<u16> &v, const u16 width) {
21 // Wrap the x component of the vector v around the size
22 return vec2<u16>(v.x % width, v.y);
23}
24} // namespace
25
26Tile2x2_u8_wrap::Tile2x2_u8_wrap() {

Callers 1

Tile2x2_u8_wrapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected