Skip to content

MetaballsEffect

Source: MetaballsEffect.h

MetaballsEffect

class MetaballsEffect
src/light/effects/MetaballsEffect.h:11

Inherits: EffectBase

Metaballs effect: smooth merging blobs via a scalar field.

MetaballsEffect card

Public Attributes

uint8_t bpm = 30

uint8_t radius = 28

uint8_t count = 4

uint8_t hue_shift = 0

Public Methods

virtual inline const char * 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

Public Static Attributes

constexpr uint8_t MAX_BALLS = 8

constexpr draw::BlobPath BLOB_PATHS = { {1, 0, 64}, {2, 30, 94}, {3, 60, 124}, {1, 120, 184}, {2, 160, 16}, {3, 200, 210}, {1, 90, 150}, {2, 220, 40}, }