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

The folds of a warped field, drawn by their own steepness

Installation

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

Usage

import { Orb25 } from "@/components/orbs/orb-25";
<Orb25 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
speedBoil0.015 – 200.053
driftDrift0 – 80.020.6
swirlSwirl0 – 30.0150.05
radiusRadius0.15 – 30.0150.9
scaleCell scale0.3 – 600.17.5
bulgeDome bulge0 – 40.020.3
warpFold0 – 20.010.4
zoomOctave zoom0.6 – 20.0051.111
rippleRipple0.02 – 30.010.3
edgeGainEdge gain0.5 – 600.510
blurRim width0.5 – 120.252.5
fringeChromatic fringe0 – 1.50.0050.09
exposureExposure0.05 – 400.050.8
contrastContrast0.15 – 80.051.15
saturationSaturation0 – 40.021.5
floorLevelBody fill0 – 20.010.16
lightKey light0 – 30.0150.35
rimRim sheen0 – 30.0150.45

Colours are passed through colors as hex strings.

ColourLabelDefault
tintRim#dbe8f7
bodyBody#0d1118
sheenSheen#a8c8f0

Credits

Based on original work by XorDev.