Recording to Video
VideoRenderer wraps another renderer and records frames to a video file.
All drawing goes through the inner renderer; frames are captured on each draw() and written when close() is called.
Basic usage
Given a sequence of states (for example from jax.lax.scan):