Liquid Ascii

Fluid simulation rendered as ASCII characters

liquid-ascii-tw

Customize

Simulation

0.9
15
-25
0.3
0.4
1.5

Cursor & Solver

0.25
66
30
3

Color

1

Props

NameTypeDefaultDescription
widthstring | number"100%"Container width
heightstring | number"100%"Container height
classNamestring""Additional CSS classes for styling
childrenReactNodeundefinedContent rendered above the effect
speednumber0.9Simulation timestep multiplier (0.1–3)
cellSizenumber15Character cell size in pixels (6–30)
gravitynumber-25Gravity strength (negative = downward, 0 = zero-g) (-50–0)
flipRationumber0.3FLIP vs PIC blending ratio (0=PIC, 1=FLIP)
pressureItersnumber30Number of pressure solver iterations (5–80)
separationItersnumber3Number of particle separation passes (1–10)
overRelaxationnumber1.5Over-relaxation factor for pressure solve (1–2)
fillHeightnumber0.4Fill fraction of the tank (0–1)
cursorRadiusnumber0.25Radius of mouse influence as fraction of short side (0–0.5)
cursorForcenumber66Strength of cursor push force (0–200)
charactersstring" ·:-~=+*#%@"Characters ordered by visual weight (light to heavy)
colorstring"#ffffff"Text color (hex)
backgroundColorstring"#000000"Background color (hex)
fontFamilystring"monospace"Font family for rendering
opacitynumber1Master opacity (0–1)
autoWavebooleantrueAuto-animate waves when cursor is idle