Changes a slot's Slot.color and Slot.darkColor for two color tinting.

Static variables

@:value(4)staticfinalinlineread onlyA:Int = 4

@:value(3)staticfinalinlineread onlyB:Int = 3

@:value(7)staticfinalinlineread onlyB2:Int = 7

@:value(8)staticfinalinlineread onlyENTRIES:Int = 8

@:value(2)staticfinalinlineread onlyG:Int = 2

@:value(6)staticfinalinlineread onlyG2:Int = 6

@:value(-4)staticfinalinlineread onlyPREV_A:Int = -4

@:value(-5)staticfinalinlineread onlyPREV_B:Int = -5

@:value(-1)staticfinalinlineread onlyPREV_B2:Int = -1

@:value(-6)staticfinalinlineread onlyPREV_G:Int = -6

@:value(-2)staticfinalinlineread onlyPREV_G2:Int = -2

@:value(-7)staticfinalinlineread onlyPREV_R:Int = -7

@:value(-3)staticfinalinlineread onlyPREV_R2:Int = -3

@:value(-8)staticfinalinlineread onlyPREV_TIME:Int = -8

@:value(1)staticfinalinlineread onlyR:Int = 1

@:value(5)staticfinalinlineread onlyR2:Int = 5

Constructor

new(frameCount:Int)

Variables

finalframes:Array<Float>

The time in seconds, red, green, blue, and alpha values of the color, red, green, blue of the dark color, for each key frame.

slotIndex:Int

The index of the slot in Skeleton.slots that will be changed. The Slot.darkColor must not be null.

Methods

setFrame(frameIndex:Int, time:Float, r:Float, g:Float, b:Float, a:Float, r2:Float, g2:Float, b2:Float):Void

Sets the time in seconds, light, and dark colors for the specified key frame.

Inherited Variables

Inherited Methods

Defined by CurveTimeline

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

Returns the interpolated percentage for the specified key frame and linear percentage.

getCurveType(frameIndex:Int):Int

Returns the interpolation type for the specified key frame.

Returns:

Linear is 0, stepped is 1, Bezier is 2.

getFrameCount():Int

The number of key frames for this timeline.

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

Sets the specified key frame to Bezier interpolation. cx1 and cx2 are from 0 to 1, representing the percent of time between the two key frames. cy1 and cy2 are the percent of the difference between the key frame's values.

setLinear(frameIndex:Int):Void

Sets the specified key frame to linear interpolation.

setStepped(frameIndex:Int):Void

Sets the specified key frame to stepped interpolation.