ColorOperatorsMethods extension
- inverted, for returning
-this
- compareLuminance, for returning the brighter or darker
Color
utilizing>
- or, for randomization by
Color | List<Color>
The following methods resemble the operator counterparts but they have a
slot for provision of a strength
or alpha/opacity override
(see alphaFromStrength
for details):
- on
Properties
Methods
-
add(
Color other, [dynamic strength]) → Color -
Add the
red
,green
, andblue
channels ofother
with those ofthis Color
. The resultant alpha is maintained fromthis
, unless astrength
would be specified which is used instead. -
average(
Color other, [dynamic strength]) → Color -
Average the
alpha
,red
,green
, andblue
channels of aColor
with anotherother
. -
compareLuminance(
Color other, {bool returnBrighter = true}) → Color -
Exposure
method
for>
operator. -
or(
dynamic others) → Color -
Exposure
method
for|
operator: randomColor
access. -
subtract(
Color other, [dynamic strength]) → Color -
Subtract the
red
,green
, andblue
channels ofother
from those ofthis Color
. The resultant alpha is maintained fromthis
, unless astrength
would be specified which is used instead.