RGB2Timeline

TimelineCurveTimelinespine.RGB2Timeline (Class)
Implements: SlotTimeline

Changes the RGB for a slot's {@link Slot#getColor()} and {@link Slot#getDarkColor()} for two color tinting.

Static Members

spine
ENTRIES: Int

spine
LINEAR: Int

spine
STEPPED: Int

spine
BEZIER: Int

spine
BEZIER_SIZE: Int

Instance Members

spine
slotIndex: Int

spine
getFrameEntries(): Int
Returns
Int

spine
getSlotIndex(): 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

spine
new(frameCount: Int, bezierCount: Int, slotIndex: Int): Void
Name Type
frameCount Int
bezierCount Int
slotIndex Int

Private Members

spine
R: Int

spine
G: Int

spine
B: Int

spine
R2: Int

spine
G2: Int

spine
B2: Int