Skip to main content

Module bouncing_balls

Module bouncing_balls 

Source
Expand description

Bouncing balls physics simulation.

2D elastic collisions with gravity, wall boundaries, and velocity-dependent color mapping. Produces RenderCommand output for SVG/keyframe export.

Structsยง

Ball
A single ball in the simulation.
BouncingBallsConfig
Simulation configuration.
BouncingBallsState
Complete simulation state.