Point2DKeyframe constructor

Point2DKeyframe(
  1. Point2D value,
  2. Duration duration
)

Constructs a Point2DKeyframe from the value and offset.

  • value Point2D keyframe value.

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

Implementation

factory Point2DKeyframe(Point2D value, Duration duration) => $prototype.create(value, duration);