| 1234567891011121314151617181920212223242526272829303132333435363738 |
- import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
- import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
- /**
- *
- * A Track of keyframe values that represent color.
- *
- *
- * @author Ben Houston / http://clara.io/
- * @author David Sarno / http://lighthaus.us/
- * @author tschw
- */
- function ColorKeyframeTrack( name, times, values, interpolation ) {
- KeyframeTrackConstructor.call( this, name, times, values, interpolation );
- }
- ColorKeyframeTrack.prototype =
- Object.assign( Object.create( KeyframeTrackPrototype ), {
- constructor: ColorKeyframeTrack,
- ValueTypeName: 'color'
- // ValueBufferType is inherited
- // DefaultInterpolation is inherited
- // Note: Very basic implementation and nothing special yet.
- // However, this is the place for color space parameterization.
- } );
- export { ColorKeyframeTrack };
|