返回 CodeWhale
1 //! Codewhale's canonical Whale v2 performance, shared by every terminal surface.
2 //!
3 //! The native core is adapted from `codewhale-app/src/whale` at
4 //! `bc1044887b4ef973e444b6f8f83f9389daffee2a`; see
5 //! `assets/whale-motion/PROVENANCE.md`. One host-owned [`Director`] accepts
6 //! authoritative owner inputs. Springs, authored clips, particles and the rig
7 //! produce the live pose; widgets only paint it. Drop the Director when the
8 //! foreground identity changes, or use [`Stage`] to manage that boundary.
9 //!
10 //! [`braille`] retains the canonical one-ink packed geometry. [`colored_braille`]
11 //! adds the native blue ombre and prop inks to those same dots; a terminal cell
12 //! can carry one foreground ink, so its majority visible shape wins, with later
13 //! paint order breaking ties. The caller supplies localized state words.
14 //! Reduced motion settles on the authored poster and schedules no animation.
15
16 pub mod acting;
17 pub mod arrival;
18 pub mod data;
19 pub mod habitat;
20 pub mod ink;
21 pub mod math;
22 pub(crate) mod pixels;
23 pub mod props;
24 pub mod rig;
25 pub mod scene;
26 pub mod stage;
27
28 pub use acting::{Activity, Context, Director, Event, Options, Presence, Span, acting_for};
29 pub use data::Act;
30 pub use habitat::{Cove, Layer};
31 pub use rig::{Cmd, Parts, Path, Role, Shape, holes_for};
32 pub use scene::{
33 ColoredGrid, Grid, View, braille, colored_braille, rasterize, rasterize_colored, scene,
34 scene_posed,
35 };
36 pub use stage::{CoveScene, Inputs, Stage, Tier};
37
38 #[cfg(test)]
39 mod tests;
40
40 lines RUST