mix
const mix: (color, amount, mode?) => (self) => Color & (self, color, amount, mode?) => Color;
Variable: mix
const mix: (color, amount, mode?) => (self) => Color & (self, color, amount, mode?) => Color;Defined in: packages/motion/src/Color.ts:290
Blend two colors, amount of the way from self to color.
Remarks
mode picks the color space the blend travels through, which changes the
intermediate hues considerably: "lab" (the animators' default) keeps
perceptual evenness, while "rgb" can pass through muddy midpoints.
Param
color
The color to blend toward.
Param
amount
0 returns self, 1 returns color — both exactly.
Param
mode
Interpolation space.