Deep copies a color value.
the destination color
Deallocates a color value.
Set an RGB color which is roughly representative to the wavelength.
the wavelength roughly between 380nm and 780nm
Initialises a color value.
component value
component value
component value
Convert from one color format to another.
the destination color
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.
Input array
the target length of the return array
Checks the array for monotonicity.
Input array
Creates a new RGB array.
Allocates a color value.
Allocates a color value.