ColorKeyframeTrack.js 862 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
  2. import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
  3. /**
  4. *
  5. * A Track of keyframe values that represent color.
  6. *
  7. *
  8. * @author Ben Houston / http://clara.io/
  9. * @author David Sarno / http://lighthaus.us/
  10. * @author tschw
  11. */
  12. function ColorKeyframeTrack( name, times, values, interpolation ) {
  13. KeyframeTrackConstructor.call( this, name, times, values, interpolation );
  14. }
  15. ColorKeyframeTrack.prototype =
  16. Object.assign( Object.create( KeyframeTrackPrototype ), {
  17. constructor: ColorKeyframeTrack,
  18. ValueTypeName: 'color'
  19. // ValueBufferType is inherited
  20. // DefaultInterpolation is inherited
  21. // Note: Very basic implementation and nothing special yet.
  22. // However, this is the place for color space parameterization.
  23. } );
  24. export { ColorKeyframeTrack };
粤ICP备19079148号