Function: AsciiFluid()
AsciiFluid(
options?:object):Background
Creates a procedural ASCII Fluid background element.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { backgroundColor?: string; cellSize?: number; characters?: string; className?: string; color?: string; id?: string; opacity?: number; waveSpeed?: number; } | - |
options.backgroundColor? | string | Background color behind the fluid (default: "#09090b") |
options.cellSize? | number | Size of each ASCII character cell in pixels (default: 18) |
options.characters? | string | ASCII character ramp ordered from darkest to brightest |
options.className? | string | - |
options.color? | string | Primary accent color for characters (default: "#38bdf8") |
options.id? | string | - |
options.opacity? | number | Optional initial opacity (default: 1). |
options.waveSpeed? | number | Speed of wave rolling across screen (default: 0.5) |