A practical guide to the Gradient effect on Crystal Focus X, including waveform shapes, static spatial blending, frequency, offset, inversion, percentage-based modulation, audio overlay, and ready-to-use recipes for tip fades, stripes, smooth dual-color blends, and noisy textures.
lcoolsparkf, sparkd, driftmapb, mapc, ecolor, mapping_unstableThe Gradient effect (unstable=7) creates a static blend pattern along the blade. Unlike the earlier unstable effects, it does not animate. There is no scrolling, no heat simulation, and no frame-to-frame movement. The pattern simply sits in place on the blade.
Think of Gradient as a painter’s tool. You choose a waveform shape, set how many repetitions stretch across the blade, dial in the amplitude and offset, and the result is a fixed pattern of color blending between your blade color and ecolor.
Because it is static, Gradient works especially well as a layering base underneath other animated blade behaviors such as flicker, movie flicker, or swing bright.
| Feature | Chainsaw (4) | Gradient (7) |
|---|---|---|
| Animation | Scrolling pattern | Static pattern |
sparkd role | Scroll speed | Position offset |
sparkf role | Pattern frequency | Pattern frequency |
drift role | Direction | Pattern inversion |
mapb / mapc scaling | Byte-style scaling | Percentage-style scaling |
| Combat interaction | Built-in speed boosts | None |
| Color system | Direct blend | Direct blend |
In your blade profile section, set:
unstable=7
Each frame, Gradient calculates a spatial pattern across the blade. In normal use the result stays identical from frame to frame, unless audio overlay or the random waveform mode is active.
sparkd and repeated according to sparkf.lcool is applied.drift=1, the waveform is flipped.mapb and shifted upward by mapc.ecolor.lcool — Waveform ShapeDefault: 20
This selects the static pattern shape.
lcool Range | Waveform | Visual Character |
|---|---|---|
0–39 | Sawtooth | Linear ramp with a sharp reset |
40–79 | Triangle | Symmetric rise and fall |
80–119 | Sine | Smooth curved wave |
120–159 | Square | Hard alternating bands |
160–200 | Drunk / Random | Randomized texture |
Tip: Sine is especially good for Gradient because it gives the smoothest transitions between colors.
hcool — Not Usedhcool has no visible role in Gradient.
sparkd — Position OffsetDefault: 10
This shifts the starting point of the pattern along the blade. It does not change the speed, because Gradient does not scroll.
| Value | Offset on 144 px blade | Visual Result |
|---|---|---|
0 | 0 px | Pattern starts at the base reference position |
25 | ~36 px | Quarter-blade shift |
50 | ~72 px | Half-blade shift |
100 | 144 px | Full-blade shift, wraps around |
sparkf — Pattern FrequencyDefault: 120
This controls how many pattern repetitions fit across the blade. Gradient supports a much denser pattern range than Chainsaw.
| Value | Approx. Multiplier | Visual Result |
|---|---|---|
0 | 1× | One full cycle across the blade |
10 | ~5× | A few wide repetitions |
50 | ~25× | Many visible repetitions |
120 | ~60× | Dense default structure |
200 | 100× | Maximum density, extremely fine pattern |
Tip: Keepsparkfbelow about80if you want clearly visible large-scale spatial patterns. Very high values become texture-like.
drift — Pattern InversionDefault: 0
In Gradient, drift flips the pattern instead of reversing motion.
drift=0 Normal waveform
drift=1 Inverted waveform
For example, a single sawtooth cycle becomes either a base-to-tip ramp or a tip-to-base ramp depending on this setting.
Gradient uses direct color blending between the blade base color and the effect color, but its amplitude and offset controls behave like percentages rather than byte-scaled values.
ecolor — Effect ColorThis is the target color at the peak of the pattern.
ecolor=1023,1023,1023,0 # white
ecolor=1023,0,0,0 # red
ecolor=0,800,1023,0 # cyan
On CFX, color channel values can go up to 1023.
mapb — Amplitude / Modulation DepthDefault: 50
This scales the waveform like a percentage. At 100, the wave passes through at full natural amplitude. Values above 100 overdrive the peaks and can clip them.
| Value | Effect |
|---|---|
0 | No visible wave, only baseline offset remains |
50 | Half-strength default wave |
100 | Full natural amplitude |
150 | Overdriven peaks, some clipping |
255 | Very strong overdrive, heavy clipping |
mapc — Offset / Baseline BlendDefault: 50
This adds a constant offset as a percentage of the full blend range, lifting the entire pattern upward toward ecolor.
| Value | Offset Added | Visual Result |
|---|---|---|
0 | 0 | Troughs rest at blade color |
25 | ~64 | Modest shift upward |
50 | ~128 | Default, strong baseline blend |
75 | ~191 | Very effect-color heavy |
100 | 255 | Fully effect-colored regardless of the wave |
Important: At the defaults, the troughs are already significantly blended towardecolor. Setmapc=0if you want the pattern to drop fully back to the blade base color.
mapb and mapc Work Togethermapb controls how big the pattern swing is. mapc controls where that swing sits. A high mapb with low mapc gives a full-range pattern from blade color to effect color. A lower mapb with higher mapc gives a softer pattern on top of a more effect-colored base.
mapping_unstable — Reactivity SourceDefault: 1
mapping_unstable=0 — NoneThe pattern stays completely fixed. No changes at all.
mapping_unstable=1 — AudioAudio adds two subtle behaviors:
sparkd and sparkf are boosted slightly during louder audio, so the pattern can shift and tightenecolorThis gives a living quality to an otherwise static pattern.
Note: Gradient uses your mapping_audio settings to decide how sensitive that response is.
refreshfx — Effect Refresh IntervalDefault: 12 ms
For most Gradient setups, refresh rate has almost no visible effect because the pattern is static. It only really matters for audio overlay response and the random Drunk waveform mode, which can change over time.
One full sine cycle across the blade for a smooth elegant gradient.
unstable=7
lcool=90
sparkf=0
sparkd=0
drift=0
mapb=100
mapc=0
mapping_unstable=0
ecolor=1023,1023,1023,0
Square waveform for bold alternating color bands.
unstable=7
lcool=140
sparkf=30
sparkd=0
drift=0
mapb=255
mapc=0
mapping_unstable=0
ecolor=1023,0,0,0
A denser sine structure that breathes more with sound.
unstable=7
lcool=86
sparkf=7
sparkd=21
drift=0
mapb=52
mapc=20
mapping_unstable=1
ecolor=1023,800,400,0
A single sawtooth cycle that brightens toward the tip.
unstable=7
lcool=10
sparkf=0
sparkd=0
drift=0
mapb=100
mapc=0
mapping_unstable=0
ecolor=1023,1023,1023,0
The same as above, but bright at the base and fading toward the tip.
unstable=7
lcool=10
sparkf=0
sparkd=0
drift=1
mapb=100
mapc=0
mapping_unstable=0
ecolor=1023,1023,1023,0
Random mode for a shifting noise texture.
unstable=7
lcool=180
sparkf=50
sparkd=0
drift=0
mapb=200
mapc=30
mapping_unstable=1
ecolor=800,800,1023,0
refreshfx=10
Many triangle cycles for a fine ripple structure.
unstable=7
lcool=60
sparkf=80
sparkd=0
drift=0
mapb=60
mapc=40
mapping_unstable=1
ecolor=400,600,1023,0
| Key | Gradient Role | Default | Range / Notes |
|---|---|---|---|
unstable | Effect mode | 0 | 0–18 |
lcool | Waveform shape | 20 | 0–39 Saw, 40–79 Triangle, 80–119 Sine, 120–159 Square, 160–200 Drunk |
hcool | Not used | 70 | — |
sparkd | Position offset | 10 | 0–100 |
sparkf | Frequency multiplier | 120 | 0–200; up to 100× density |
drift | Pattern inversion | 0 | 0 = normal, 1 = inverted |
mapb | Amplitude, percentage-based | 50 | 0–255; values above 100 overdrive |
mapc | Offset, percentage-based | 50 | 0–255 |
ecolor | Target blend color | — | 0–1023 per channel |
mapping_unstable | Audio overlay and subtle pattern shift | 1 | 0 or 1 |
refreshfx | Refresh interval in ms | 12 | Mainly affects audio overlay and Drunk mode |
sparkf=0. One full cycle across the blade helps you understand the selected waveform before adding more repetitions.mapc=50. It already pushes the whole blade quite far toward ecolor.mapb above 100 is an overdrive. It can flatten peaks and make the shape feel harder or blockier.sparkf creates texture more than visible waves.drift=1 is the quick way to flip a tip fade.