Crucible

Coalesce

A metaball field: drifting cores fuse and split through smooth iso-surface blending, shaded as one mercury-chrome liquid with a circling glint and a silvery rim, the pointer riding along as an extra core. Original OGL fragment shader, offscreen-paused and reduced-motion-safe.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/coalesce

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
countnumber5Number of drifting cores, clamped 1–10. The pointer adds one more.
colors[string, string]mercury — silvery monochromeChrome pair [shadow, highlight]: the dark reflection tone and the bright sky tone the surface mirrors. Any hex strings.
speednumberDrift speed multiplier. 1 = default.
sizenumber0.16Base core radius as a fraction of the container's height.
intensitynumberOverall brightness of the surface shading. 1 = default.
pausedbooleanFreeze the animation, holding the current frame.
classNamestringExtra classes for the wrapper. Positioned absolute inset-0 -z-10.

Honors prefers-reduced-motion with a designed static fallback, pauses offscreen and on hidden tabs, and passes className through.