FastLED 3.9.15
Loading...
Searching...
No Matches
fl::ScreenMap Class Reference

Detailed Description

Definition at line 27 of file screenmap.h.

#include <screenmap.h>

Public Member Functions

 ScreenMap ()=default
 
 ScreenMap (const ScreenMap &other)
 
 ScreenMap (const vec2f *lut, uint32_t length, float diameter=-1.0)
 
template<uint32_t N>
 ScreenMap (const vec2f(&lut)[N], float diameter=-1.0)
 
 ScreenMap (uint32_t length, float mDiameter=-1.0f)
 
void addOffset (const vec2f &p)
 
void addOffsetX (float x)
 
void addOffsetY (float y)
 
vec2f getBounds () const
 
float getDiameter () const
 
uint32_t getLength () const
 
vec2f mapToIndex (uint32_t x) const
 
ScreenMapoperator= (const ScreenMap &other)
 
vec2foperator[] (uint32_t x)
 
const vec2foperator[] (uint32_t x) const
 
void set (uint16_t index, const vec2f &p)
 
void setDiameter (float diameter)
 

Static Public Member Functions

static ScreenMap Circle (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f)
 
static ScreenMap DefaultStrip (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f)
 
static bool ParseJson (const char *jsonStrScreenMap, const char *screenMapName, ScreenMap *screenmap, Str *err=nullptr)
 
static bool ParseJson (const char *jsonStrScreenMap, FixedMap< Str, ScreenMap, 16 > *segmentMaps, Str *err=nullptr)
 
static void toJson (const FixedMap< Str, ScreenMap, 16 > &, JsonDocument *doc)
 
static void toJsonStr (const FixedMap< Str, ScreenMap, 16 > &, Str *jsonBuffer)
 

Static Private Member Functions

static const vec2fempty ()
 

Private Attributes

uint32_t length = 0
 
float mDiameter = -1.0f
 
LUTXYFLOATPtr mLookUpTable
 

The documentation for this class was generated from the following files: