Sign In

$blendColors[]

Blends two colors using a blend mode like average, multiply, or gamma.

v1.0.0+ Requires Brackets

Usage

$blendColors[;;;]
Also callable as
$mixColors $blend

Arguments

NameTypeRequiredDescription
color 1
StringYesThe first color.
color 2
StringYesThe second color.
mode
YesThe blend mode to use (average, additive, screen, multiply, gamma).
t
NumberNoBlend factor between 0 and 1. Used only for "average" and "gamma" modes. Defaults to 0.5.

Output

String

Was this page helpful?