Readout

A WebGL2 shader that draws a slow wave, an arch or an inverted arch entirely in pixel digits. The digits stay put while light and colour flow smoothly through them.

Props
Shape
Color
#3d6bff
Crest
theme
Speed0.50
Wave height1.00
Level0.38
Glow1.00
Smoke1.00
Dot size2

Installation

pnpm dlx shadcn@latest add @breeze/readout

Usage

import { Readout } from "@/components/breeze/readout"

It fills a hero or a section as its background. It's transparent, so your page colour shows through between the digits. The canvas fills its box: put it in a positioned parent that has a size, as below, or give it a height of its own. In a box with no height it's 0 tall.

<section className="relative isolate overflow-hidden">
  <Readout className="absolute inset-0 -z-10 h-full w-full" />
  {/* content */}
</section>

Props

PropTypeDefaultDescription
shape"waves" | "arch" | "inverted""waves"Rolling waves, an arch, or an inverted arch
colorstring"#3d6bff"Colour of the depths, any CSS colour or var()
accentColorstring"var(--foreground)"Colour of the edge and its glow
speednumber0.5Animation speed multiplier. 0 freezes the wave
waveHeightnumber1Multiplies the height of the swells (waves only)
levelnumber0.38Where the surface sits, 0 (top) to 1 (bottom)
glownumber1Strength of the glow along the edge
smokenumber1Amount of smoke drifting through the background. 0 turns it off
dotSizenumber2Size of one glyph dot in CSS px. A digit is 4 × 6 dots
strengthnumber1Ink opacity multiplier (capped at full opacity)
fpsnumber40Frame rate cap

Each digit is a 3 × 5 dot glyph drawn in the shader, so there's no font to load and the dots stay crisp at any size. The digit is the value at that spot, from a dim 0 up to a bright 9 along the edge. waves fills below a rolling surface. arch is a half circle standing on the bottom edge across the full width, meeting both corners, with the digits filling the space around it and the arch itself left open for your content. inverted is the same, hanging from the top edge. On narrow, tall frames like a phone, the circle grows wider than the frame, so you see a gentle curve near the top running off both sides, with the digits in the band above it. Both are clean, perfectly round curves at any size, cut smoothly through the digits. The digits never change: a smooth field flows through them, brightening, dimming and shifting between your two colours, over a soft wash and a glow along the edge, with slow smoke curling up through the background that the digits catch as it passes. The crest follows your text colour by default, so it's light in dark mode and dark in light mode. Every prop updates live, the animation pauses off-screen and it shows a still frame with reduced motion.

Any other canvas prop, like id, style or data-*, is passed to the canvas. It's aria-hidden unless you override it.

Examples

Arch

Inverted arch