From 4b4113a0217ee27c78e7efddb66ff5a455d49083 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 12 Nov 2026 13:19:32 -0300 Subject: debugger: add a native GUI with live V8 JIT debugging --- anim/src/ui.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'anim/src/ui.zig') diff --git a/anim/src/ui.zig b/anim/src/ui.zig index eeac127..2b697bf 100644 --- a/anim/src/ui.zig +++ b/anim/src/ui.zig @@ -163,6 +163,11 @@ pub const Ui = struct { f: *sk.Frame, at: anim.Placed, + /// Draw the same atoms in a native app, in design units without a scene timeline. + pub fn init(f: *sk.Frame) Ui { + return .{ .f = f, .at = .{ .t = 0, .pose = .{ .visible = true }, .xf = .identity, .scale = 1, .stage = .identity, .values = &.{} } }; + } + /// The same, at `opacity` of what it had: a thing arriving or leaving. pub fn faded(u: Ui, opacity: f32) Ui { var out = u; -- cgit v1.3