Skip to content

rgbMix

rgbMix(a, b, t): RgbCoords

Defined in: packages/math-color/src/models/rgb.ts:38

Linearly interpolates between two RgbCoords values.

Operates in whatever colour space the caller provides (linear or gamma). For physically correct blending pass linear-light values.

RgbCoords

Start colour (t = 0).

RgbCoords

End colour (t = 1).

number

Interpolation factor in [0, 1].

RgbCoords