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

Function wrap

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

Source from the content-addressed store, hash-verified

13
14namespace {
15static vec2<u16> wrap(const vec2<u16> &v, const vec2<u16> &size) {
16 // Wrap the vector v around the size
17 return vec2<u16>(v.x % size.x, v.y % size.y);
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

Callers 1

Tile2x2_u8_wrapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected