Skip to content

Documentation / @ripl/core / interpolateNumbers

interpolateNumbers ​

Interpolator factory that transitions between two numeric arrays element-wise.

The result takes the target's length, the shorter array repeating to fill it — a line dash pattern already repeats, so [4, 4] and [4, 4, 4, 4] describe the same dashes. An empty array on either side has nothing to pair with and falls back to a discrete swap.

Functions ​

FunctionDescription
testReports whether this factory can interpolate the given value (an array of numbers).