crucıble

Singularity

A gravitationally-lensed black hole: a per-pixel Schwarzschild geodesic ray-march bends light around the event horizon, wrapping a white-hot accretion disk over and under the black sphere into the iconic lensed halo, with a crisp photon ring, Doppler-beamed asymmetry, and a lensed starfield. Original OGL fragment shader, filmic-toned, dithered, DPR-clamped, offscreen-paused, reduced-motion-safe.

oglpro

Installation

CLI

npx shadcn@latest add @crucible/singularity

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
colors[string, string, string]a heat palette (near-white → amber → deep-orange). Pass a cold set (e.g. ["#eaf3ff", "#9fc2ff", "#2b4c8c"]) for a blue-white holeAccretion-disk tones, hot → cool: [inner, mid, outer]. inner is the white-hot inner edge, mid the amber body, outer the deep cooling rim.
speednumber1Disk-rotation speed multiplier. 1 = default, 2 = twice as fast.
intensitynumber1Overall luminosity of the disk, photon ring, and bloom, 0–2. 1 = default; lower banks the plasma, higher blazes.
tiltnumber0.28Disk tilt toward the viewer, 0–1. 0 is nearly edge-on (the strongest gravitational-lensing wrap, most cinematic); 1 tips it toward top-down.
pausedbooleanFreeze the animation at its current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"div">they pass through to the underlying element.

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