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

Quantum orbital, rainbow chroma

Installation

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

Usage

import { Orb11 } from "@/components/orbs/orb-11";
<Orb11 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.9
rotSpeedRotation speed0 – 50.050.5
radiusRadius0.15 – 30.0150.9
swellInput swell0 – 10.010.07
posScaleOrbital zoom0.15 – 100.050.5
flowSpeedFlow speed0 – 100.050.35
flowAmpFlow amount0 – 40.050.45
flowScaleFlow scale0.3 – 100.10.3
precessPrecession0 – 40.050.3
radialPowRadial power0.5 – 150.10.5
radialDecayRadial decay0.3 – 300.151
probPowProbability curve0.1 – 30.0150.4
probGainProbability gain0.15 – 150.13
waveFreqWave frequency0 – 200.54
chromaSpreadChroma spread0 – 1.50.010.18
glowGlow0 – 50.050.9
metalDarkMetal darkness0 – 30.0150
baseVisBase visibility0 – 1.50.010.12

Credits

Based on original work by XorDev.