Cloth Demo

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

Pinned waving cloth carrying a flag, text, or custom ASCII art. Run with python -m bruhanimate.demos.cloth_demo.

bruhanimate.demos.cloth_demo.run(*, frames: int | None = None, fps: float = 30, preset: Literal['flag', 'checker', 'banner'] = 'flag', on_resize: Literal['raise', 'resize'] = 'resize') → int[source]

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