Shading extension
🔦 WithShading
extends Color
- on
Methods
-
withBlack(
int subtract, [dynamic strength]) → Color -
Available on Color, provided by the Shading extension
The valuesubtract
is subtracted from each RGB channel ofthis
and clamped to be non-negative. -
withWhite(
int add, [dynamic strength]) → Color -
Available on Color, provided by the Shading extension
The valueadd
is added to each RGB channel ofthis
and clamped to be255
or less.