diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-12 13:19:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-13 00:41:47 -0300 |
| commit | 4b4113a0217ee27c78e7efddb66ff5a455d49083 (patch) | |
| tree | b848dc1e92c3126dec11da8547e8033ff3990140 /anim/src/ui.zig | |
| parent | eab50d1c040774351f332a1568fa332c377860bd (diff) | |
| download | computeranim-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.zig | 5 |
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; |
