Water Demo

Run python -m bruhanimate.demos.water_demo. See Water, smoke, cloth, and procedural worlds for presets and the combined gallery.

Damped water ripples with reflecting edges and interacting impulses. Run with python -m bruhanimate.demos.water_demo.

bruhanimate.demos.water_demo.run(*, frames: int | None = None, fps: float = 30, preset: Literal['pond', 'rain', 'storm'] = 'pond', on_resize: Literal['raise', 'resize'] = 'resize') → int[source]

Play a typed preset at 30 simulation updates/sec; resize retains state.