Demos¶
This section contains content related to the demos package.
Overview¶
Each demo is a standalone runnable example of an effect or composed scene. There are two ways to run a demo:
From Python:
from bruhanimate import plasma_demo
plasma_demo.run()
From the command line:
python -m bruhanimate.demos.plasma_demo
Every demo defaults to on_resize="resize" and continues playing when the
terminal changes size. The typed on_resize argument also accepts "raise"
if you want resizing to stop playback. See Terminal resize for the policy.
All built-in simulations adapt their areas using documented state policies. The dashboard reflows its layout. The TV demo recenters its original computer artwork; fixed layer regions and moving window bounds are not rebuilt. Cycling showcases preserve their phase clocks and notify inactive effects too, so later phases use the new viewport.
The Nature Gallery gallery combines six natural/procedural effects. See Water, smoke, cloth, and procedural worlds for settings and presets.
Available Demos¶
routing_demo — Source pulse, route trace, moving marker, and arrival ripple over snow.
image_demo — Six resizable panels showcasing transitions, Wipe, masks, and styling.
dashboard_demo — Nested layouts, live solver statistics, status bar, and animated panels.
windows_demo — Five bouncing windows with plasma, fire, snow, Matrix rain, and live-audio Mirror.
tv_demo — Plasma inside the original v0.2 computer artwork, snow behind it, and cycling Glitch/Focus/Dissolve/Wipe lettering.
beam_demo — Clipped snow, independently paced beam solver, and timed overlay.
audio_demo — Seven sound-reactive modes, starting with a screen-wide field of objects; left/right selects modes.
static_demo — Static background fill.
offset_demo — Scrolling offset background.
noise_demo — Coloured random-noise pixels.
stars_demo — Blinking star field.
snow_demo — Falling snow with ground accumulation.
rain_demo — Rain with wind and collision.
plasma_demo — Animated plasma with colour and info overlay.
gol_demo — Conway’s Game of Life with rainbow decay.
matrix_demo — Cascading digital rain.
twinkle_demo — Twinkling star characters.
fire_demo — Fire simulation with heat spots.
firework_demo — Coloured firework explosions.
julia_demo — Animated Julia-set fractal.
line_demo — Bresenham line drawing.
holiday — Festive holiday scene.
boids_demo — Reynolds flocking simulation.
sand_demo — Falling-sand cellular automaton.
diffusion_demo — Gray-Scott reaction-diffusion (cycles coral/spots/stripes).
automaton_demo — Wolfram 1-D elementary CA (cycles rules 30/90/110/184).
voronoi_demo — Animated Voronoi diagram.
perlin_demo — Smooth animated noise field.
- Nature Gallery
- Water Demo
- Smoke Demo
- Metaballs Demo
- Cloth Demo
- Terrain Demo
- Audio Demo
- Beam splitting demo
- TV demo
- Image effects showcase
- Routing demo
- Moving windows demo
- Dashboard demo
- Static Demo
- Offset Demo
- Noise Demo
- Stars Demo
- Snow Demo
- Rain Demo
- Plasma Demo
- Gol Demo
- Matrix Demo
- Twinkle Demo
- Fire Demo
- Firework Demo
- Julia Demo
- Line Demo
- Holiday
- Boids Demo
- Sand Demo
- Diffusion Demo
- Automaton Demo
- Voronoi Demo
- Perlin Demo
- shared_player_demo
- terminal_demo
- Grid search demo