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-09

Torn rings of rainbow light worn as the ball's latitudes

Installation

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

Usage

import { Orb09 } from "@/components/orbs/orb-09";
<Orb09 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
speedAnim speed0.015 – 100.050.6
spinRoll0 – 30.0150.12
tiltTilt-1.5 – 1.50.0150.4
radiusRadius0.15 – 30.0150.9
scaleRing spacing0.3 – 200.13.5
warpTear0 – 30.020.45
seedRing seed0 – 30.010.9
glowRing glow0 – 10.0020.05
lineSoftRing width0.002 – 10.0020.05
innerInner falloff0.2 – 120.053
fringeRainbow fringe0 – 20.0050.1
fringeSoftFringe width0.001 – 10.0010.003
ringPhaseRing hue step0 – 30.010.8
exposureExposure0.05 – 200.051.1
contrastContrast0.15 – 100.051.1
saturationSaturation0 – 40.021.2
lightKey light0 – 30.0150.5
rimRim sheen0 – 30.0150.4

Colours are passed through colors as hex strings.

ColourLabelDefault
tintTint#ffffff
sheenSheen#b9d6ff

Credits

Based on original work by XorDev.