color_mix
Mix, blend, lighten, darken, saturate, or desaturate colors using customizable ratios, weights, and amounts for precise adjustments.
Instructions
Mix, blend, lighten, darken, saturate, or desaturate colors. For mix/blend provide 2+ colors; for lighten/darken/saturate/desaturate provide 1 color and an amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | Blend ratio from 0 (first color) to 1 (second color). Default: 0.5. | |
| amount | No | Amount for lighten/darken/saturate/desaturate (0-100). Default: 10. | |
| colors | Yes | Array of colors in any supported format | |
| weights | No | Optional weights for mixing (same length as colors). Default: equal weights. | |
| operation | Yes | Operation: mix, blend, lighten, darken, saturate, desaturate |