Multiplies the opacity of a colour by amount, returning a computed CSS colour.
amount
multiplyOpacity(`red`, 0.5); // Returns a colour string Copy
multiplyOpacity(`red`, 0.5); // Returns a colour string
For example, to half the opacity, use amount: 0.5. Clamps the result to ensure it's between 0..1
amount: 0.5
Colour
Amount
Multiplies the opacity of a colour by
amount
, returning a computed CSS colour.For example, to half the opacity, use
amount: 0.5
. Clamps the result to ensure it's between 0..1