Skip to content
Nicuvëo edited this page Jan 19, 2015 · 2 revisions

Interpolation functions

Interpolation functions expect two colors and a ratio value in the [0..1] range. They do a linear interpolation of each value.

A template version exists, expecting two color of the same type, which outputs a value of the same type T. However, the version expecting two Color instances still expects a template parameter, giving the color space over which it should project and interpolate the two given instances.

Such interpolation functions can be pre-bounded with the interpolation functions. Each function also has a variant that takes an Environment variable, used to specify how values should be converted to the desired interpolation color space.

Clone this wiki locally