Skip to main content

KeyframeTrack

ColorKeyframeTrack

A Track of keyframe values that represent color changes.

The very basic implementation of this subclass has nothing special yet. However, this is the place for color space parameterization.

Constructor

ColorKeyframeTrack

function ColorKeyframeTrack( name: String, times: Array, values: Array ):
void;

name - (required) identifier for the KeyframeTrack.
times - (required) array of keyframe times.
values - values for the keyframes at the times specified, a flat array of color components between 0 and 1.
interpolation - the type of interpolation to use. See Animation Constants for possible values. Default is InterpolateLinear.

Properties

See KeyframeTrack for inherited properties.

ValueTypeName

ValueTypeName: String;  

String 'color'.

Methods

See KeyframeTrack for inherited methods.

Source

src/animation/tracks/ColorKeyframeTrack.js