From 0c10f9668b3ef67ce1eb83db435aaa94b35df012 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 22:53:41 -0300 Subject: anim: the player's render path moves into anim.Painter render, paint, reveal, built, stage, guides and labels move verbatim from player.zig into src/anim/Painter.zig, with the viewer's settings and the Typst module as parameters, so a sketch that runs a Deck itself paints its shot the same way: a Painter in its Session and paint() once a frame. The scene's frame size is anim.width/height and a Shot carries its t. Pixels unchanged: the scene tests' screenshots and all 92 exported frames match the previous build's. --- src/anim/root.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/anim/root.zig') diff --git a/src/anim/root.zig b/src/anim/root.zig index ea57ed2..4acecb3 100644 --- a/src/anim/root.zig +++ b/src/anim/root.zig @@ -69,6 +69,7 @@ const tween = sk.tween; const Drawing = vector.Drawing; pub const ease = tween.ease; +pub const Painter = @import("Painter.zig"); // manim's palette. pub const blue: u32 = 0x58c4dd; -- cgit v1.3