By default, we show a rainbow wave. If you see no color, open Debug for errors.
Presets:
HSV-based rainbow wave
Smooth red/blue wave (no 255, auto-scale used)
Rotates red hue in HSV
Flickering red/orange wave
Highlights a red band near appargs.x, width appargs.y, scaled by appargs.z
Green highlight near appargs.x, fade by distance, scaled by appargs.z
Use these function calls in math.js expressions:
vec3(r,g,b) – Create an RGB vector (0–1 range)vec3.mix(a,b,t) – Linear interpolationvec3.rotate(v,angle) – Rotate hue (HSV)vec3.hsv(h,s,v) – Create color via HSV (0–360, 0–100)Variables in scope:
x: LED index 0–1t: time in seconds (reset via “Reset Time”)speed: slider in 0.01–5.0 rangeappargs: {x,y,z,w} for bookshelf or other custom usage
Important:
- Start the expression with a valid math token (not //comment).
- If your expression returns 0–1 color channels, it’s auto-scaled to 0–255.
- If it’s already in 0–255, no scaling is applied.