Blends two colours in sRGB with the alpha multiplied in, as Chrome mixes a
colour animation: a transparent end adds no colour of its own, so
rgba(255, 0, 0, 0) to blue is blue fading in rather than passing through
purple. Where the mixed alpha is zero the colour has no hue to recover and none
paints, so the channels are mixed straight, keeping two transparent ends'
hues continuous.
Takes Rgba, not strings. One colour parser serves both surfaces and
lives in meo-canvas-core, so the string boundary is parseColor rather
than every function that touches a colour. A v9 call passing strings is refused
with a pointer to the migration guide, naming each argument that was a string.
t is not clamped, because CSS interpolates colour through an overshooting
curve and clamps where the colour becomes paint — so an outBack driving a
colour may overshoot here, exactly as it does for a number. formatColor
is where an out-of-gamut result stops being silent.
Blends two colours in sRGB with the alpha multiplied in, as Chrome mixes a colour animation: a transparent end adds no colour of its own, so
rgba(255, 0, 0, 0)to blue is blue fading in rather than passing through purple. Where the mixed alpha is zero the colour has no hue to recover and none paints, so the channels are mixed straight, keeping two transparent ends' hues continuous.Takes Rgba, not strings. One colour parser serves both surfaces and lives in
meo-canvas-core, so the string boundary is parseColor rather than every function that touches a colour. A v9 call passing strings is refused with a pointer to the migration guide, naming each argument that was a string.tis not clamped, because CSS interpolates colour through an overshooting curve and clamps where the colour becomes paint — so anoutBackdriving a colour may overshoot here, exactly as it does for a number. formatColor is where an out-of-gamut result stops being silent.