ColorOperatorsMethods extension
- inverted, for returning
-this - compareLuminance, for returning the brighter or darker
Colorutilizing> - 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 -
Available on Color, provided by the ColorOperatorsMethods extension
Add thered,green, andbluechannels ofotherwith those ofthis Color. The resultant alpha is maintained fromthis, unless astrengthwould be specified which is used instead. -
average(
Color other, [dynamic strength]) → Color -
Available on Color, provided by the ColorOperatorsMethods extension
Average thealpha,red,green, andbluechannels of aColorwith anotherother. -
compareLuminance(
Color other, {bool returnBrighter = true}) → Color -
Available on Color, provided by the ColorOperatorsMethods extension
Exposuremethodfor>operator. -
or(
dynamic others) → Color -
Available on Color, provided by the ColorOperatorsMethods extension
Exposuremethodfor|operator: randomColoraccess. -
subtract(
Color other, [dynamic strength]) → Color -
Available on Color, provided by the ColorOperatorsMethods extension
Subtract thered,green, andbluechannels ofotherfrom those ofthis Color. The resultant alpha is maintained fromthis, unless astrengthwould be specified which is used instead.