color_rgb_array_interpolate


Description:


[ Version ( replacement = "ColorRGB.array_interpolate" , since = "0.1.31" ) ]
public GenericArray<ColorRGB> color_rgb_array_interpolate (GenericArray<ColorRGB> array, uint new_length)

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.

Parameters:

array

Input array

new_length

the target length of the return array

Returns:

An array of size new_length or null


Namespace: Cd
Package: colord



2022 vala-language.org