A practical guide to the Rainbow effect on Crystal Focus X, including hue ranges, scroll speed, static candy-cane mode, direction, brightness and saturation control, audio overlay, and ready-to-use recipes for full-spectrum scrolls, sunset bands, ocean tones, and static stripes.
spark, driftlcool, hcoolsparkd, mapb, mapc, fxmapThe Rainbow effect (unstable=9) paints every pixel on the blade with a color taken from the HSV color wheel. You can use the full wheel or only a selected slice of it, then either keep the pattern still or let it scroll continuously along the blade.
Rainbow has two distinct operating modes built into the same effect: a scrolling mode when spark > 0, and a static mode when spark=0.
| Mode | Condition | Behavior |
|---|---|---|
| Scrolling | spark > 0 | The hue pattern advances every frame and slides along the blade |
| Static | spark = 0 | The hue pattern is fixed in place as repeating bands or one full gradient |
In your blade profile section, set:
unstable=9
| Parameter | Role in Rainbow |
|---|---|
unstable | Set to 9 to select Rainbow |
spark | Scroll speed. 0 means static mode |
sparkd | Transition width in scrolling mode, or repeat count behavior in static mode |
lcool | Hue range start |
hcool | Hue range end |
drift | Scroll direction |
mapb | Overall brightness |
mapc | Overall saturation |
fxmap | Audio mapping mode |
lcool and hcool are values from 0 to 255, mapped across the full 0° to 360° hue wheel. These landmarks are useful when choosing a range:
| Color | Approx. Value | Hue Angle |
|---|---|---|
| Red | 0 | 0° |
| Yellow | 42 | ~60° |
| Green | 85 | ~120° |
| Cyan | 127 | ~180° |
| Blue | 170 | ~240° |
| Magenta | 213 | ~300° |
| Red wrap | 255 | 360° |
sparkdrift controls which direction the rainbow travelsWhen lcool and hcool do not span the full wheel, the pattern is remapped into that chosen range. To avoid a harsh jump where the range loops back around, Rainbow uses a transition zone. The width of that transition zone is controlled by sparkd.
Higher sparkd values make the wrap smoother. Lower values make the edge sharper.
When spark=0, the scroll is fully disabled. In that case sparkd determines how many times the rainbow pattern repeats along the blade.
sparkd | Static Result |
|---|---|
100 | One full rainbow over the whole blade |
50 | Two repeats |
25 | Four repeats |
10 | About ten repeats, tight candy-cane stripes |
spark — Scroll SpeedThis controls how fast the rainbow moves when scrolling mode is active.
| Value | Visual Result |
|---|---|
0 | Frozen, static mode |
5–20 | Very slow drift |
60–100 | Moderate, clearly visible scrolling |
150+ | Fast, energetic movement |
220+ | Very fast travel |
Important: Lockup triples the scroll speed and clash doubles it, so moderate normal values often look best.
drift — Scroll Directiondrift=1 Forward
drift=0 Reverse
This changes the direction of travel. It does not change which colors are present, only how they move.
mapb — Overall BrightnessThis controls the overall brightness passed into the rainbow color generation.
mapc — Overall SaturationThis controls the overall saturation. Lower values make the rainbow softer and more pastel. Higher values make it vivid and fully saturated.
| Setting | Look |
|---|---|
High mapb, high mapc | Bright, vivid rainbow |
High mapb, medium mapc | Bright but softer colors |
Lower mapb, medium mapc | Dimmer, moodier rainbow |
High mapb, low mapc | Pastel rainbow |
| Trigger | Effect |
|---|---|
Audio mapping (fxmap=1) | Fx color blends into every pixel based on sound volume |
| Lockup | Scroll speed × 3 |
| Clash | Scroll speed × 2 |
fxmap — Mapping Modefxmap=0 No audio response
fxmap=1 Audio-reactive Fx color blend
With audio mapping enabled, the blade not only gets the moving rainbow, but also an extra Fx color blend during louder audio.
A classic smooth rainbow through the entire wheel.
unstable=9
spark=100
lcool=0
hcool=255
sparkd=50
drift=0
mapb=255
mapc=255
A single still full-blade rainbow from emitter to tip.
unstable=9
spark=0
lcool=0
hcool=255
sparkd=100
mapb=255
mapc=255
Several repeating static rainbow bands.
unstable=9
spark=0
lcool=0
hcool=255
sparkd=25
mapb=255
mapc=255
Restricted to reds, oranges, and yellows.
unstable=9
spark=60
lcool=0
hcool=42
sparkd=60
drift=0
mapb=255
mapc=255
Scrolling blues and cyans with a watery feel.
unstable=9
spark=80
lcool=127
hcool=170
sparkd=50
drift=1
mapb=255
mapc=255
A softer full-spectrum look with reduced saturation.
unstable=9
spark=50
lcool=0
hcool=255
sparkd=50
drift=0
mapb=200
mapc=128
A fast bright rainbow with audio-driven Fx color pulses layered on top.
unstable=9
spark=150
lcool=0
hcool=255
sparkd=50
drift=0
mapb=255
mapc=255
fxmap=1
| Key | Rainbow Role | Default / Notes |
|---|---|---|
unstable | Effect mode | Set to 9 |
spark | Scroll speed, or static mode when 0 | 0–220+ |
sparkd | Transition width or repeat density | Depends on scrolling vs static mode |
lcool | Hue range start | 0–255 |
hcool | Hue range end | 0–255 |
drift | Scroll direction | 1 forward, 0 reverse |
mapb | Brightness | Higher = brighter |
mapc | Saturation | Higher = more vivid |
fxmap | Audio reactivity | 0 none, 1 audio |
lcool and hcool changes the hue order. Changing drift changes the motion direction.spark=0 first, then adjust sparkd.sparkd in scrolling restricted-range mode gives a smoother wrap-around. Lower values make a sharper transition edge.