Voronoi
Animate a field of organic cells with crisp edges, an optional edge glow, and gentle shading.
Overview
Voronoi divides the surface into cells, one around each of many slowly wandering points, so the pattern reads like cracked glaze, cell tissue, or a stained-glass network. Edges keep an even width at any scale, can glow softly into the cells, and cells can darken toward their borders so they look slightly raised. With jitter at 0 the cells form a square grid; at 1 they are fully organic.
Close, low-contrast cell colors with a single bright edge color work well as a quiet technical background. A palette of distinct colors with thin dark edges reads as stained glass. Raise scale for a fine mesh behind dense content, or lower it for a few large cells in a hero.
Installation
Usage
import { Voronoi } from "honestui/shaders"
<div className="h-80">
<Voronoi
className="size-full"
colors={["#16181d", "#21252e"]}
edgeColor="#5eead4"
scale={6}
/>
</div>Accessibility
Voronoi is decorative: the canvas is hidden from assistive technology, and text or actions belong in normal HTML above it. Bright, glowing edges compete with overlaid text, so test contrast across the moving pattern, or lower glow and edgeWidth behind content. Animation pauses while the effect is offscreen, while the document is hidden, and when the user prefers reduced motion; a still frame is rendered instead. Use paused for your own control, and give the container a background for when WebGL is unavailable.