Skip to main content

Module render

Module render 

Source
Expand description

Terminal renderer: an optimised, colourful superset of crate::frame.

The unit of rendering is a Reveal session: construct it, push a new progress value whenever your task advances, and finish. Each call diffs against the previous frame, so only cells whose appearance changed are repainted, in practice the moving “frontier” band plus whatever ink just settled. Settled cells are painted exactly once.

The glowing frontier is not an effect bolted on; it falls out of the model. A cell feather rank-units behind progress is at the frontier; one further behind has settled. Colour is interpolated across that band, so the bright “head” of the reveal slides along the spine for free.

Structs§

Reveal
A live terminal reveal session.
Style
Visual options for the reveal.

Enums§

Palette
How revealed ink is coloured.

Functions§

animate
Animate the reveal of art over duration, driven by easing.