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

◆ addOffset()

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

Definition at line 280 of file screenmap.cpp.

280 {
281 vec2f *data = mLookUpTable->getDataMutable();
282 for (uint32_t i = 0; i < length; i++) {
283 vec2f &curr = data[i];
284 curr.x += p.x;
285 curr.y += p.y;
286 }
287}
uint32_t length
Definition screenmap.h:92
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:94
vec2< float > vec2f
Definition geometry.h:318
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: