AnimationModule
The AnimationModule
class implements object animation.
Example
Properties
Property
Description
samplers
(get) samplers: SamplerFactory (set) (Not Available)
Specifies an instance of a SamplerFactory
object.
Methods
Method
Description
animate
animate(driver: Driver, sampler: ScalarSampler): ScalarSignal animate(driver: Driver, sampler: ArrayOfScalarSamplers): ArrayOfScalarSignals animate(driver: Driver, sampler: RotationSampler): RotationSignal animate(driver: Driver, sampler: ColorSampler): RgbaSignal
Combines the driver and the sampler to create a signal that can be used to animate arbitrary properties of arbitrary objects.
For TimeDriver
-based animations the animation will start only when TimeDriver.start
is invoked.
timeDriver
timeDriver(timeDriverParams: {durationMilliseconds: number, loopCount: ?number, mirror: ?boolean}): TimeDriver
Returns a TimeDriver
object that drives an animation for the specified parameters. loopCount
defines the number of iterations before the time driver stops; this can be infinity. When mirror
is TRUE
, the time driver follows a yoyo effect with every odd iteration going forwards and every even iteration going backwards.
valueDriver
valueDriver(value: ScalarSignal, min: number, max: number): ValueDriver
Returns a ValueDriver
object that drives an animation based on values emitted from a ScalarValue
. The signal values are normalized and clamped to maximum and minimum values.
Classes
Class
Description
The ArrayOfScalarSamplers
class describes an array of scalar samplers.
The ArrayOfScalarSignals
class describes an array of scalar signals.
The ColorSampler
class encapsulates a color sampler.
The Driver
class encapsulates an animation driver.
The RotationSampler
class is an animation sampler for object rotation.
The SamplerFactory
class creates different types of animation samplers.
The ScalarSampler
class encapsulates a scalar value sampler.
The SignalRecord
class encapsulates recording data for a value signal
The SignalRecorder
class enables recording and playback of signal values
The TimeDriver
class controls an animation.
The ValueDriver
class controls an animation value.
Last updated