Returns a variation of colour with its opacity multiplied by amt. Value will be clamped to 0..1
amt
// Return a colour string for blue that is 50% opaquemultiplyOpacity(`blue`, 0.5);// eg: `rgba(0,0,255,0.5)`// Returns a colour string that is 50% more opaquemultiplyOpacity(`hsla(200,100%,50%,50%`, 0.5);// eg: `hsla(200,100%,50%,25%)` Copy
// Return a colour string for blue that is 50% opaquemultiplyOpacity(`blue`, 0.5);// eg: `rgba(0,0,255,0.5)`// Returns a colour string that is 50% more opaquemultiplyOpacity(`hsla(200,100%,50%,50%`, 0.5);// eg: `hsla(200,100%,50%,25%)`
Named colours
A valid CSS colour
Amount to multiply opacity by
String representation of colour
Returns a variation of colour with its opacity multiplied by
amt
. Value will be clamped to 0..1Named colours