Skip to main content

Module ordering

Module ordering 

Source
Expand description

Orderings turn Art into a RankMap.

This is the single seam where “reveal the art in a way that depends on the art” lives. Implement Ordering and you control the choreography; the rest of the engine (rendering, easing, diffing) is oblivious to how ranks were chosen.

Structs§

Directional
Reveal the art as a clean directional wipe, ranking each cell by its position along one axis. Predictable and intuitive: a tall dragon paints from the top, a wide serpent from the left, and nothing shows until the wipe reaches it. This is the Loader default.
Geodesic
Reveal along the “spine” of the art.
GeodesicReport
Diagnostics describing how well a piece of art suits geodesic reveal.
Scanline
Reveal in reading order: top-to-bottom, left-to-right.

Enums§

Direction
The direction a Directional reveal sweeps.
StartHint
Which end of the spine the Geodesic reveal starts at.

Traits§

Ordering
Assigns every ink cell a reveal rank in 0..=1.