Skip to main content

KeyframeTrack

BooleanKeyframeTrack

A Track of boolean keyframe values.

Constructor

BooleanKeyframeTrack

function BooleanKeyframeTrack( 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.

Properties

See KeyframeTrack for inherited properties.

DefaultInterpolation

DefaultInterpolation: Constant;  

The default interpolation type to use, InterpolateDiscrete.

ValueBufferType

ValueBufferType: Array;  

A normal Array (no Float32Array in this case, unlike ValueBufferType of KeyframeTrack).

ValueTypeName

ValueTypeName: String;  

String 'bool'.

Methods

See KeyframeTrack for inherited methods.

InterpolantFactoryMethodLinear

function InterpolantFactoryMethodLinear( ): undefined;  

The value of this method here is 'undefined', as it does not make sense for discrete properties.

InterpolantFactoryMethodSmooth

function InterpolantFactoryMethodSmooth( ): undefined;  

The value of this method here is 'undefined', as it does not make sense for discrete properties.

Source

src/animation/tracks/BooleanKeyframeTrack.js