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.
/
0
Sponsor

ORB-17

a grainy many-coloured storm with band shear and lightning

Installation

$ pnpm dlx shadcn@latest add https://shadercn.vercel.app/r/orb-17.json

Usage

import { Orb17 } from "@/components/orbs/orb-17";
<Orb17 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
speedStorm speed0.015100.050.9
spinRoll050.030.12
radiusRadius0.1530.0150.9
scaleWeather scale0.3120.12.4
bandsBand count0200.16
shearBand shear050.031.1
warpWarp080.052.2
churnChurn080.051.4
gainBrightness0.0550.051.15
contrastContrast0.15100.051.35
grainField grain020.010.4
filmGrainFilm grain020.010.35
grainSizeGrain size1812
rainbowIridescence020.010.65
flashRateFlash rate0100.051.6
flashFlash power050.031.2
lightKey light030.0150.85
rimRim light030.0150.5

Colours are passed through colors as hex strings.

ColourLabelDefault
deepDeep#2a0f4e
lowLow pressure#0fd0c3
midMid pressure#ff5e9d
hotHigh pressure#ffd166
flashLightning#eaf4ff

Credits

Shader by XorDev, ported from orbkit (WebGL/GLSL) to WebGPU/WGSL.