lib.rsannotatedlib.rssource15 lines · 626 B · raw

The cat as data: rectangles on the app's 15 by 16 grid, grouped, with the motion each group has. Nothing here draws. The grey cat is defined once, in grey.rs; the website draws it as SVG, and the app draws it in Compose from Kotlin that tools/gen-kotlin writes from this data (kotlin.rs), so there is one drawing. flatten turns a scene into the quads it covers at an instant, which is what fixtures/frames.txt pins the Kotlin evaluator to.

7pub mod decor;
8pub mod flatten;
9pub mod grey;
10pub mod kotlin;
11pub mod motion;
12pub mod node;
13pub mod scene;
15pub use scene::{Mouth, VIEW, assemble, scene};