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

A weather-radar mosaic, fronts of coloured pixels sweeping the ball

Installation

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

Usage

import { Orb27 } from "@/components/orbs/orb-27";
<Orb27 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
speedFront speed0.015 – 100.050.6
spinRoll0 – 50.030.04
radiusRadius0.15 – 30.0150.9
scaleGrid zoom0.3 – 80.052.4
cellsGrid8 – 120134
dotDot size0.1 – 0.50.010.36
swirlSwirl0 – 80.051.5
vortexVortex size0.1 – 20.010.45
freqStorm scale0.2 – 80.051.6
warpBend0 – 30.020.5
loQuiet threshold0 – 10.0050.12
hiPeak threshold0 – 10.0050.82
curveResponse curve0.5 – 40.051.4
ditherClass dither0 – 0.60.0050.12
sparseQuiet density0 – 10.010.16
densityFill0 – 1.50.011
twinkleTwinkle rate0 – 300.53
grainPaper grain0 – 10.010.1
lightKey light0 – 10.010.18
rimRim0 – 10.010.35

Colours are passed through colors as hex strings.

ColourLabelDefault
paperPaper#efe9dc
c0Quiet#a9a9a6
c1Class 1#2e5df0
c2Class 2#38d9ec
c3Class 3#22c35c
c4Class 4#e8322a
c5Class 5#f5d020
c6Peak#e030c0

Credits

Based on original work by XorDev.