NoiseEffect2D¶
Category: effect | Tags: 🔥🟦
Smooth animated noise field on the XY plane. Each pixel's hue is determined by a trilinear value noise function sampled at (x*scale, y*scale, time*speed). The noise is a hash-based implementation with bilinear spatial interpolation and smoothstep curves, so it works on all platforms without FastLED or any external library.
Controls¶
| Control | Type | Range | Default | Description |
|---|---|---|---|---|
scale |
slider | 1-32 | 4 | Spatial frequency (higher = finer detail) |
speed |
slider | 0-255 | 50 | Animation speed (0 = frozen) |
Wiring¶
{
"type": "NoiseEffect2D",
"inputs": { "layer": "<effects-layer-id>" }
}
Implementation notes¶
- The noise function is a 3D (x, y, time) trilinear interpolation over a hash lattice. Each lattice point is hashed using integer arithmetic (no floating-point random), making it deterministic and cycle-accurate.
- Colour is mapped through HSV with saturation 200 and full brightness, cycling through the hue wheel based on the noise value.
- No heap allocation; all state fits in the module itself.
Health report¶
scale=4 speed=50 checksum=12345
Tags¶
| Emoji | Meaning |
|---|---|
| 🔥 | Effect |
| 🟦 | 2D+ |