The easing curve for a UITween.

An enum abstract over Int, so it is just an Int at runtime (no allocation) while giving named, type-safe values. Where a UIEase is expected the name can be written unqualified, e.g. UITween.to(setP, 0, 1, 155, OUT_QUAD); elsewhere use UIEase.OUT_QUAD. from/to Int keep it interchangeable with plain ints.

  • LINEAR — no easing
  • OUT_QUAD — decelerate (the default for most UI motion)
  • OUT_BACK — decelerate with a slight overshoot
  • IN_QUAD — accelerate

Variables

@:value(cast 3)@:impl@:enuminlineread onlyIN_QUAD:UIEase = 3

@:value(cast 0)@:impl@:enuminlineread onlyLINEAR:UIEase = 0

@:value(cast 2)@:impl@:enuminlineread onlyOUT_BACK:UIEase = 2

@:value(cast 1)@:impl@:enuminlineread onlyOUT_QUAD:UIEase = 1