- Docs
- Components
- Backgrounds
- Specter Orb
Specter Orb
A ghostly raymarched orb wrapped in drifting smoke
Customize
Props
37| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | "100%" | Width of the container. |
height | string | number | "100%" | Height of the container. |
className | string | - | Extra classes for the container. |
children | ReactNode | - | Content stacked above the orb. |
radius | number | 0.35 | Radius of the smooth core before displacement. |
turbulence | number | 0.3 | How far the noise pushes the surface outward. |
noiseScale | number | 1 | Frequency of the displacement field. |
flowSpeed | number | 0.3 | Speed the field drifts through the orb. |
octaves | number | 3 | Octaves baked into the displacement field. |
roughness | number | 0.5 | Amplitude falloff between octaves. |
lacunarity | number | 2 | Frequency gain between octaves. |
steps | number | 32 | Maximum ray march iterations. |
stride | number | 1 | Fraction of each distance estimate to advance. Lower is safer, higher is faster. |
zoom | number | 1 | Scales the orb inside the frame. |
maskRadius | number | 1 | Radius of the circular cutout. |
maskFeather | number | 0.02 | Softness of the circular cutout. |
colorA | string | "#4da6ff" | Key light color. |
colorB | string | "#9959ff" | Fill light color. |
colorC | string | "#6680ff" | Ambient wrap color. |
rimStrength | number | 0.75 | Strength of the two opposing rim lights. |
rimPower | number | 3 | Tightness of the rim falloff. |
specularColorA | string | "#669fff" | Color of the primary highlight. |
specularColorB | string | "#998fff" | Color of the secondary highlight. |
specularStrength | number | 1 | Strength of both highlights. |
specularSharpness | number | 12 | Tightness of the highlights. |
glowStrength | number | 1 | Strength of the halo around the silhouette. |
glowFalloff | number | 32 | Tightness of the halo falloff. |
gamma | number | 1.25 | Contrast curve applied at the end. |
brightness | number | 1 | Overall gain. |
opacity | number | 1 | Master alpha of the canvas. |
backgroundColor | string | "#0a0a0a" | Fill behind the orb. Accepts "transparent". |
cursorInteraction | boolean | true | Let the pointer swing the lighting. |
cursorLight | number | 0.35 | How far the pointer swings the lighting. |
adaptiveQuality | boolean | true | Drop resolution when the frame rate falls short. |
targetFps | number | 60 | Frame rate the adaptive pass aims for. |
dpr | number | 2 | Upper bound on device pixel ratio. |
paused | boolean | false | Hold the animation still. |
widthstring | numberWidth of the container.
"100%"heightstring | numberHeight of the container.
"100%"classNamestringExtra classes for the container.
-childrenReactNodeContent stacked above the orb.
-radiusnumberRadius of the smooth core before displacement.
0.35turbulencenumberHow far the noise pushes the surface outward.
0.3noiseScalenumberFrequency of the displacement field.
1flowSpeednumberSpeed the field drifts through the orb.
0.3octavesnumberOctaves baked into the displacement field.
3roughnessnumberAmplitude falloff between octaves.
0.5lacunaritynumberFrequency gain between octaves.
2stepsnumberMaximum ray march iterations.
32stridenumberFraction of each distance estimate to advance. Lower is safer, higher is faster.
1zoomnumberScales the orb inside the frame.
1maskRadiusnumberRadius of the circular cutout.
1maskFeathernumberSoftness of the circular cutout.
0.02colorAstringKey light color.
"#4da6ff"colorBstringFill light color.
"#9959ff"colorCstringAmbient wrap color.
"#6680ff"rimStrengthnumberStrength of the two opposing rim lights.
0.75rimPowernumberTightness of the rim falloff.
3specularColorAstringColor of the primary highlight.
"#669fff"specularColorBstringColor of the secondary highlight.
"#998fff"specularStrengthnumberStrength of both highlights.
1specularSharpnessnumberTightness of the highlights.
12glowStrengthnumberStrength of the halo around the silhouette.
1glowFalloffnumberTightness of the halo falloff.
32gammanumberContrast curve applied at the end.
1.25brightnessnumberOverall gain.
1opacitynumberMaster alpha of the canvas.
1backgroundColorstringFill behind the orb. Accepts "transparent".
"#0a0a0a"cursorInteractionbooleanLet the pointer swing the lighting.
truecursorLightnumberHow far the pointer swings the lighting.
0.35adaptiveQualitybooleanDrop resolution when the frame rate falls short.
truetargetFpsnumberFrame rate the adaptive pass aims for.
60dprnumberUpper bound on device pixel ratio.
2pausedbooleanHold the animation still.
false