class spinehx.CurveTimeline implements Timeline

import spinehx.Animation;

Available on all platforms

Base class for frames that use an interpolation bezier curve.

Instance Fields

function new(frameCount:Int):Void

function apply(skeleton:Skeleton, time:Float, alpha:Float):Void

function getCurvePercent(frameIndex:Int, percent:Float):Float

function getFrameCount():Int

function setCurve(frameIndex:Int, cx1:Float, cy1:Float, cx2:Float, cy2:Float):Void

Sets the control handle positions for an interpolation bezier curve used to transition from this keyframe to the next. * cx1 and cx2 are from 0 to 1, representing the percent of time between the two keyframes. cy1 and cy2 are the percent of * the difference between the keyframe's values.

function setLinear(frameIndex:Int):Void

function setStepped(frameIndex:Int):Void