Logo FS-Skia-UI

Animation Module

Public contract module exposed by this FS.Skia.UI package.

Functions and values

Function or value Description

applyAt elapsed animation target

Full Usage: applyAt elapsed animation target

Parameters:
Returns: SceneNode

Pure sampling: produce the target scene transformed for the given time sample. Identity-at-rest rule (R5): when the sampled opacity is `1.0` and the sampled transform is identity, returns the target scene's node unwrapped (byte-identical to static); a non-identity transform lowers to a `PerspectiveNode`.

elapsed : TimeSpan
animation : Animation
target : Scene
Returns: SceneNode

empty

Full Usage: empty

Returns: Animation

The no-op animation: every property absent. `applyAt` over `empty` returns the target unwrapped at every time sample.

Returns: Animation

isSettled elapsed animation

Full Usage: isSettled elapsed animation

Parameters:
Returns: bool

True when every present tween has `elapsed ≥ Duration`; drives redraw gating.

elapsed : TimeSpan
animation : Animation
Returns: bool

lerpColor a b t

Full Usage: lerpColor a b t

Parameters:
Returns: Color

Per-RGBA-byte (rounded) linear interpolation between two colors (the `'a = Color` interpolant). A flat binding rather than a `Color` submodule because the `Color` type already occupies that name in the namespace.

a : Color
b : Color
t : float
Returns: Color

lerpFloat a b t

Full Usage: lerpFloat a b t

Parameters:
    a : float
    b : float
    t : float

Returns: float

Linear interpolation between two floats (the `'a = float` interpolant passed to `Tween.sample` / `AnimationState.create`). Sibling of `lerpColor` and `Transform.lerp`. Lives here because a namespace cannot hold a bare value.

a : float
b : float
t : float
Returns: float

sampleFrames times animation target

Full Usage: sampleFrames times animation target

Parameters:
Returns: Scene list

Samples the animation at explicit time points for deterministic evidence.

times : TimeSpan list
animation : Animation
target : Scene
Returns: Scene list

Type something to start searching.