Function: mix()
mix(
color1,color2,amount):Color
Mixes two colors.
Parameters
| Parameter | Type | Description |
|---|---|---|
color1 | Color | The first color. |
color2 | Color | The second color. |
amount | number | The amount of the second color to mix in, from 0 to 1. |
Returns
A new Color instance representing the mixed color.
Defined in
manipulation/components/mix.ts:11