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

Beads swelling and shrinking in their cells, packed over the ball

Installation

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

Usage

import { Orb19 } from "@/components/orbs/orb-19";
<Orb19 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.5
swirlSwirl0 – 30.0150.05
slideDrift0 – 40.020.1
radiusRadius0.15 – 30.0150.9
scalePacking scale0.3 – 300.110
bulgeDome bulge0 – 40.020.3
growDot size-0.2 – 1.20.0050.185
varySize variation0 – 0.40.0050.13
skewGenerator detune0 – 30.010.62
jitterDot wander0 – 1.50.010.1
edgeRim hardness1 – 200150
beadBead shading0 – 10.010
gainBrightness0.05 – 40.021
contrastContrast0.15 – 60.051
saturationSaturation0 – 40.021.1
floorLevelBody fill0 – 20.010.06
lightKey light0 – 30.0150.3
rimRim sheen0 – 30.0150.35

Colours are passed through colors as hex strings.

ColourLabelDefault
lowDot#ffffff
highDot accent#eef5ff
bodyBody#05070c
sheenSheen#9dbfe4

Credits

Based on original work by XorDev.