Does a computation with the opacity of a colour, returning colour.
Passes operation to HslSpace or SrgbSpace depending on space of colourish.
HslSpace
SrgbSpace
colourish
Colour
Function that takes original opacity as input and returns output opacity
Does a computation with the opacity of a colour in a RGB structure
Does a computation with the opacity of a colour, returning colour.
Passes operation to
HslSpace
orSrgbSpace
depending on space ofcolourish
.Param: colourish
Colour
Param: fn
Function that takes original opacity as input and returns output opacity