Skip to content

FixedRectangleEffect

Source: FixedRectangleEffect.h

FixedRectangleEffect

class FixedRectangleEffect
src/light/effects/FixedRectangleEffect.h:24

Inherits: EffectBase

Test effect: draws a fixed rectangle at set coordinates.

Public Attributes

uint8_t red = 182

uint8_t green = 15

uint8_t blue = 98

uint8_t white = 0

int16_t rectX = 0

int16_t rectY = 0

int16_t rectZ = 0

int16_t rectW = 15

int16_t rectH = 15

int16_t rectD = 15

bool alternateWhite =

Public Methods

virtual inline constchar * tags() const override : Curated emoji tags for the module picker's chip filter — extras beyond the role chip (which the UI derives from role() on its own).

virtual inline Dim dimensions() const override : Which axes the effect iterates — a claim, not a guarantee about the layer.

virtual inline void defineControls() override : defineControls MUST be idempotent and pure: only controls_.clear() + controls_.addX().

virtual inline void tick() override