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

a ball of glossy toy bricks, studs up — it rebuilds itself while it thinks

Installation

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

Usage

import { Orb12 } from "@/components/orbs/orb-12";
<Orb12 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
spinSpin050.030.25
tiltTilt040.020.55
rebuildRebuild rate0200.10.4
gapMissing bricks00.80.010.07
studsStuds848118
radiusRadius0.1530.0150.95
patchColour patches010.010.35
studStud relief010.010.85
seamSeams010.010.6
glossGloss030.021
lightKey light030.0151
gainGain0.0550.051
contrastContrast0.15100.051

Colours are passed through colors as hex strings.

ColourLabelDefault
brickARed#c4281c
brickBYellow#f2cd37
brickCBlue#1e5aa8
brickDGreen#00852b
brickEWhite#f4f4f4

Credits

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