RGB2Timeline
Timeline → CurveTimeline → spine.RGB2Timeline (Class)
Implements: SlotTimeline
Changes the RGB for a slot's {@link Slot#getColor()} and {@link Slot#getDarkColor()} for two color tinting.
Static Members
Instance Members
Returns |
---|
Int |
The index of the slot in {@link Skeleton#getSlots()} that will be changed when this timeline is applied. The {@link Slot#getDarkColor()} must not be null.
Returns |
---|
Int |
spine
setFrame(frame: Int, time: Float, r: Float, g: Float, b: Float, r2: Float, g2: Float, b2: Float): Void
Sets the time, light color, and dark color for the specified frame.
Name | Type | Description |
---|---|---|
frame |
Int | Between 0 and frameCount , inclusive. |
time |
Float | The frame time in seconds. |
r |
Float | |
g |
Float | |
b |
Float | |
r2 |
Float | |
g2 |
Float | |
b2 |
Float |
spine
apply(skeleton: Skeleton, lastTime: Float, time: Float, events: spine.support.utils.Array<Event>, alpha: Float, blend: MixBlend, direction: MixDirection): Void
Name | Type |
---|---|
skeleton |
Skeleton |
lastTime |
Float |
time |
Float |
events |
spine.support.utils.Array<Event> |
alpha |
Float |
blend |
MixBlend |
direction |
MixDirection |
Name | Type |
---|---|
frameCount |
Int |
bezierCount |
Int |
slotIndex |
Int |