PRO

Glyph Rain

Seventy-two extruded BLANK letters fall row by row into a box and pile up, drawn through an 8x8 ordered dither in one orange. matter-js runs the fall with a convex hull per letter, and three.js lights each letter and dithers it to two tones. The cursor tilts the camera and moves the light. Pass your own glyph set to drop other letters.

Component
Color
Dithering
200
Install
npx shadcn@latest add @compronents/glyph-rain

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
rowsstring[][]—Glyph keys per row, bottom row first. Defaults to nine rows of B L A N K repeated to eight per row.
loadGlyphs() => Promise<GlyphSet>—Returns a Map of key to BufferGeometry, about 25 units tall and 7.3 deep, centred on the origin. Defaults to the BLANK wordmark letters.
markUrlstring—Wordmark SVG the default loader cuts into letters.
colorstring"#ff4300"The one colour the dither draws in.
ditherSizenumber200Dither cells per canvas height.
gravitynumber4Downward acceleration in world units per second squared.
vignetteOffsetnumber0.4Vignette offset.
vignetteDarknessnumber0.6Vignette darkness.
vignetteOpacitynumber1Vignette blend opacity.
pausedbooleanfalseFreezes the simulation.
rationumber21 / 9Width over height of the canvas.
refGlyphRainHandle—replay() drops every letter again from the top.
classNamestring—Class on the root.
styleCSSProperties—Additional styles for the root.
Dependencies
threepostprocessinggsapmatter-js