crucıble

Retro Forge

A synthwave horizon: a perspective plane of glowing magenta grid lines scrolling toward the viewer, melting into a layered violet horizon bloom, with an optional slit-scanned cyan sun and faint star field. Original OGL fragment shader, offscreen-paused and reduced-motion-safe.

oglfree

Installation

CLI

npx shadcn@latest add @crucible/retro-forge

Manual — install dependencies, then copy the source

npm install ogl

Props

PropTypeDefaultDescription
colors[string, string, string]Three tones: [line, glow, sun]. line is the grid-line color (magenta), glow is the horizon glow (violet), sun is the horizon semicircle (cyan). Any hex string.
speednumber1Grid-scroll speed multiplier. 1 = default, 2 = twice as fast.
heatnumber1Heat 0–1: scales the brightness of the horizon glow, the rolling glow wave on the grid, and the sun together.
cellSizenumber60Grid cell size in px (larger = coarser grid).
sunbooleantrueRender the horizon "sun" semicircle with scanline slits.
carbooleantrueRender the neon outrun sports car cruising on the grid.
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.