Table of Contents

Method Update

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Update(TimeSpan)

Advances the animation by the given time delta, applying AnimationSpeed and Repeat. Call this on each frame tick.

public void Update(TimeSpan deltaTime)

Parameters

deltaTime TimeSpan

The time elapsed since the last call. A positive value advances forward; a negative value moves the position backward (subject to clamping at the boundaries).

Remarks

The effective delta is scaled by AnimationSpeed before being applied: a speed of 2.0 doubles the rate, 0.5 halves it, and -1.0 plays in reverse.

When Repeat is Reverse(int), the internal direction is flipped automatically when the animation reaches a boundary, producing a ping-pong effect.

Has no effect when no animation is loaded (HasAnimation is false).