chickadee » tween » interpolate

interpolate selector-function value-vector percentprocedure

Given a selector-function this produces a value within the range of values defined in value-vector that is representative of the provided percent.

value-vector must be a vector of numbers.

percent must be a value between 0.0 and 1.0.

selector-function must be of the form value-vector -> percent -> number

Various selector functions are provided by this egg, see below.