summaryrefslogtreecommitdiff
path: root/anim/src/ui.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-12 13:19:32 -0300
committerGabriel Schneider <[email protected]>2026-11-13 00:41:47 -0300
commit4b4113a0217ee27c78e7efddb66ff5a455d49083 (patch)
treeb848dc1e92c3126dec11da8547e8033ff3990140 /anim/src/ui.zig
parenteab50d1c040774351f332a1568fa332c377860bd (diff)
downloadcomputeranim-4b4113a0217ee27c78e7efddb66ff5a455d49083.tar.gz
computeranim-4b4113a0217ee27c78e7efddb66ff5a455d49083.zip
debugger: add a native GUI with live V8 JIT debugging
Diffstat (limited to 'anim/src/ui.zig')
-rw-r--r--anim/src/ui.zig5
1 files changed, 5 insertions, 0 deletions
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;