Static methods

staticgetEaseWeight(weight:Float, easeType:FoxEaseType):Float

Constructor

new(trackName:String, _type:FoxTrackType)

Variables

read onlyname:String

@:value([])frames:Array<FoxKeyframe<T>> = []

Methods

@:value({ easing : FoxEaseType.LINEAR })addFrame(time:Float, value:T, easing:FoxEaseType = FoxEaseType.LINEAR):Void

addFrames(times:Array<Float>, values:Array<T>, ?easings:Array<FoxEaseType>):Void

removeFrame(frame:FoxKeyframe<T>):Void

removeFrameByIndex(index:Int):Void

@:value({ ceil : false, closestFrame : false })getFrameIndexByTime(time:Float, closestFrame:Bool = false, ceil:Bool = false):Int

Parameters:

closestFrame

The index will be rounded towards the closest value (i.e: 0.55 between 0 and 1, the closest is 1) if false: it will return the index of the current frame

ceil

The index of the next frame will always be returned

@:value({ nextFrame : false, closestFrame : false })getFrameByTime(time:Float, closestFrame:Bool = false, nextFrame:Bool = false):FoxKeyframe<T>

Parameters:

closestFrame

The index will be rounded towards the closest value (i.e: 0.55 between 0 and 1, the closest is 1) if false: it will return the current frame

nextFrame

The next frame will always be returned