RedInterpolator:
Filter:
Classes (extension) | Red > redScore

RedInterpolator : Object
ExtensionExtension

holds a value and interpolates to new target

Description

Interpolator.

Class Methods

Inherited class methods

Undocumented class methods

RedInterpolator.new(value: 0, tick, clock)

Instance Methods

.goto(target: 1, dur: 0, curve: 0)

Arguments:

target

The target value to go to.

dur

Duration in seconds.

curve

Curvature. If nil then linear. Can also be a SimpleNumber, a custom Function or an Ease object (install the Ease quark with Quarks.install("Ease");.

.action

.action = value

An optional Function that will be evaluated for each step. The arguments passed in are: current value, current ramp position (0.0-1.0), current step index, total number of steps.

Inherited instance methods

Undocumented instance methods

.clock

.clock = value

.tick

.tick = value

.value

.value = val

Examples