SolidEffect
Source:
SolidEffect.h
SolidEffect¶
src/light/effects/SolidEffect.h:24Inherits:
EffectBase
Effect that fills the whole layer with one palette colour.
Public Attributes¶
uint8_t red = 182
uint8_t green = 15
uint8_t blue = 98
uint8_t white = 0
uint8_t brightness = 255
uint8_t colorMode = 0
uint8_t minRGB = 10
bool randomColors =
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 prepare() override
: Tier-3 of the control-change split (see onControlChanged above): the module (re)allocates / recomputes whatever derived state it owns — an effect's heap, a Layer's mapping LUT, the Drivers output buffer.
virtual inline void tick() override
Public Static Attributes¶
constexprconstchar * kColorModeOptions = {
"RGB()", ", "Palette , "Palette , "Palette }
constexpruint8_t kColorModeCount = 5