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

A crazed web of coloured threads knotted to a cell grid

Installation

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

Usage

import { Orb26 } from "@/components/orbs/orb-26";
<Orb26 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 – 100.050.4
swirlSwirl0 – 30.0150.07
driftCrazing drift0 – 50.030.18
radiusRadius0.15 – 30.0150.9
scaleCell scale0.3 – 200.19
bulgeDome bulge0 – 40.020.25
warpWarp0 – 30.020.85
poleKnot strength0 – 20.0050.25
poleSoftKnot size0.001 – 10.0010.012
pulseCell breathing0 – 20.010.35
sharpThread width0.3 – 200.054.5
splitChromatic split0 – 10.0050.045
coreHot core0 – 30.0150.45
floorBody fill0 – 30.010.9
gainBrightness0.05 – 50.051
contrastContrast0.15 – 100.051.35
lightKey light0 – 30.0150.7
rimRim sheen0 – 30.0150.45

Colours are passed through colors as hex strings.

ColourLabelDefault
deepGlaze#111a2e
lineThread#3fd2ff
hotHot thread#fff4d6
sheenSheen#a9d8ff

Credits

Based on original work by XorDev.