Interpolate the RGB array to a different size.
This uses the Akima interpolation algorithm unless the array would become non-monotonic, in which case it falls back to linear interpolation.
array |
Input array |
new_length |
the target length of the return array |
An array of size |