Function Entity.scaleFromTo

Starts a scaling tween from one scale to another.

Tween* scaleFromTo(
  dlib.math.vector.Vector!(float,3) sFrom,
  dlib.math.vector.Vector!(float,3) sTo,
  double duration,
  Easing easing = Easing.Linear
);

Parameters

NameDescription
sFrom Starting scale.
sTo Ending scale.
duration Duration in seconds.
easing Easing function (default: Linear).

Returns

Pointer to the tween.