Anchor2DKeyframe constructor

Anchor2DKeyframe(
  1. Anchor2D value,
  2. Duration duration
)

Constructs a Anchor2DKeyframe from the value and offset.

  • value Anchor2D keyframe value.

  • duration Relative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.

Implementation

factory Anchor2DKeyframe(Anchor2D value, Duration duration) => $prototype.create(value, duration);