ColorKeyframeTrack.js 697 B

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