diff options
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; |
