30 float cm_led_diameter = 0.5f,
31 float completion = 1.0f);
34 float cm_led_diameter = 0.2f,
35 float completion = .9f) {
36 return Circle(numLeds, cm_between_leds, cm_led_diameter, completion);
78 static bool ParseJson(
const char *jsonStrScreenMap,
82 static bool ParseJson(
const char *jsonStrScreenMap,
83 const char *screenMapName,
ScreenMap *screenmap,
static void toJsonStr(const FixedMap< Str, ScreenMap, 16 > &, Str *jsonBuffer)
ScreenMap & operator=(const ScreenMap &other)
void setDiameter(float diameter)
void set(uint16_t index, const vec2f &p)
vec2f mapToIndex(uint32_t x) const
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f)
uint32_t getLength() const
static void toJson(const FixedMap< Str, ScreenMap, 16 > &, JsonDocument *doc)
void addOffset(const vec2f &p)
static ScreenMap DefaultStrip(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f)
static const vec2f & empty()
LUTXYFLOATPtr mLookUpTable
const vec2f & operator[](uint32_t x) const
static bool ParseJson(const char *jsonStrScreenMap, FixedMap< Str, ScreenMap, 16 > *segmentMaps, Str *err=nullptr)
ScreenMap(const vec2f(&lut)[N], float diameter=-1.0)
float getDiameter() const
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]