For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
/
163
Sponsor

ORB-07

A twist wave travelling out through the ball around a lit column

Installation

$ pnpm dlx shadcn@latest add @shadercn/orb-07

Usage

import { Orb07 } from "@/components/orbs/orb-07";
<Orb07 size={280} state="idle" />

Props

Component Props

PropTypeDefaultDescription
state"idle" | "thinking" | "speaking""idle"Drive preset the orb eases toward
sizenumber280Rendered size in CSS pixels
paramsPartial<Record<string, number>>-Shader param overrides, see Shader Props
colorsPartial<Record<string, string>>-Shader colour overrides as hex strings
statePresetsPartial<Record<OrbState, Record<string, number>>>-Replace the built-in per-state param presets
stateColorsPartial<Record<OrbState, Record<string, string>>>-Replace the built-in per-state colours
stateVolumesPartial<Record<OrbState, { input?: number; output?: number }>>-Pin the drive volumes a state settles on
volumes{ input?: number; output?: number }-Drive the orb directly, bypassing synthesis
pausedbooleanfalseFreeze the frame loop
pauseOffscreenbooleantrueStop rendering while scrolled out of view
maxDprnumber2Upper bound on the device pixel ratio
classNamestring-Class on the wrapper element
styleCSSProperties-Inline style on the wrapper element
ariaLabelstring-Accessible name for the canvas

Shader Props

Pass any of these through params; each is a single f32 uniform read by the shader.

ParamLabelRangeStepDefault
speedCell shimmer0.015 – 100.050.5
waveWave speed0 – 80.030.7
twistTwist0 – 80.021
spinRoll0 – 30.0150.1
tiltAxis lean-1.5 – 1.50.0150.3
camDistCamera distance1 – 500.37
focalLens0.15 – 150.12.25
turbCell turbulence0 – 50.031
columnColumn release0 – 10.010
stepScaleStep scale0.005 – 1.50.0050.1
hueDepthDepth hue0 – 100.030.75
hueStepStep hue0 – 100.030.45
envRadiusEnvelope radius0.15 – 150.12.6
envCoreEnvelope core0.3 – 1.020.010.88
fillBody fill0 – 1000.30.15
stepClampStep clamp3 – 500010400
scatterDiffusion0 – 0.50.0030.01
exposureExposure1.5 – 5000560
contrastContrast0.15 – 150.11.3
saturationSaturation0 – 40.021.15
alphaGainAlpha gain0.05 – 150.12
edgeEdge sharpness0 – 10.011
edgeFadeHalo falloff0.1 – 30.0150.98

Colours are passed through colors as hex strings.

ColourLabelDefault
tintTint#ffffff

Credits

Based on original work by XorDev.