ASCII Flow
Web (React)
Flowing fractal noise rendered as ASCII characters in your theme colours.
Fractal noise drawn in your theme's background and primary tokens, converted into ASCII character art. It fills its positioned parent and freezes its animation when the user prefers reduced motion. Built on the shaders library (MIT) and rendered with WebGPU.
ASCII Flow
Installation
CLI
npx @modus-ui/cli add ascii-flowManual
- Install
shaderswithnpm install shaders. - Copy the code from the component tab.
- Create a file at
components/ui/ascii-flow.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
colorA | string | theme token | Dark colour. Defaults to the --background token. |
colorB | string | theme token | Light colour. Defaults to the --primary token. |
characters | string | " .:-=+*#%@" | Characters from darkest to brightest. |
cellSize | number | 16 | Character cell size in pixels. |
speed | number | 0.4 | Noise animation speed. |
contrast | number | 1.2 | Noise contrast. |
Comments