Animation
Definitions
The height of the animation canvas as a Float32 for geometric calculations.
The width of the animation canvas as a Float32 for geometric calculations.
The field the balls bounce in, which is also the window main opens.
One pair of numbers: the walls, the window and the tests all read them here, so a The width of the animation canvas in pixels.
The starting world: four balls from seed, and nothing being pushed yet.
The same seed gives the same four balls, so a run of this sketch can be repeated exactly -- the reason the tests can assert about it at all.
One logical tick. Pure: no clock, no window, no IO.