Skip to main content

render_scene

Function render_scene 

Source
pub fn render_scene(scene: &Expr, caps: &SurfaceCaps) -> String
Expand description

Renders scene to deterministic terminal text for the surface caps.

The scene is first reduced with reduce_for_caps (display-density projection), then walked into newline-joined ASCII lines with no trailing newline. The transform is pure: equal inputs produce an equal String.