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.
npx shadcn@latest add @compronents/glyph-rainInstalls from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.
Checking access…
| Prop | Type | Default | Description |
|---|---|---|---|
| rows | string[][] | — | 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. |
| markUrl | string | — | Wordmark SVG the default loader cuts into letters. |
| color | string | "#ff4300" | The one colour the dither draws in. |
| ditherSize | number | 200 | Dither cells per canvas height. |
| gravity | number | 4 | Downward acceleration in world units per second squared. |
| vignetteOffset | number | 0.4 | Vignette offset. |
| vignetteDarkness | number | 0.6 | Vignette darkness. |
| vignetteOpacity | number | 1 | Vignette blend opacity. |
| paused | boolean | false | Freezes the simulation. |
| ratio | number | 21 / 9 | Width over height of the canvas. |
| ref | GlyphRainHandle | — | replay() drops every letter again from the top. |
| className | string | — | Class on the root. |
| style | CSSProperties | — | Additional styles for the root. |
threepostprocessinggsapmatter-js