TimelineColorKeyframe
TimelineKeyframe → ceramic.TimelineColorKeyframe (Class)
A keyframe that stores a color value for timeline animations.
Used by TimelineColorTrack to animate color properties over time. Colors are interpolated between keyframes based on the easing function, creating smooth color transitions.
The color interpolation is performed in RGB color space, with each channel (red, green, blue) interpolated independently.
Example usage in a timeline:
var track = new TimelineColorTrack();
track.add(new TimelineColorKeyframe(Color.RED, 0, LINEAR));
track.add(new TimelineColorKeyframe(Color.YELLOW, 30, EASE_IN_OUT));
track.add(new TimelineColorKeyframe(Color.BLUE, 60, BOUNCE_EASE_OUT));
Instance Members
value: Color
The color value stored in this keyframe. This color is used as a target for interpolation when animating.
Create a new color keyframe.
Name | Type | Description |
---|---|---|
value |
Color | The color value for this keyframe |
index |
Int | The frame index (time position) for this keyframe |
easing |
Anonymous | The easing function for interpolation to the next keyframe |
Metadata
Name | Parameters |
---|---|
:structInit |
- |