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

◆ addOffset()

void fl::ScreenMap::addOffset ( const vec2f & p)

Definition at line 273 of file screenmap.cpp.

273 {
274 vec2f *data = mLookUpTable->getDataMutable();
275 for (uint32_t i = 0; i < length; i++) {
276 vec2f &curr = data[i];
277 curr.x += p.x;
278 curr.y += p.y;
279 }
280}
uint32_t length
Definition screenmap.h:92
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:94
vec2< float > vec2f
Definition geometry.h:301
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:30

References length, mLookUpTable, p, fl::vec2< T >::x, and fl::vec2< T >::y.

Referenced by addOffsetX(), and addOffsetY().

+ Here is the caller graph for this function: