Shading extension
🔦 WithShading extends Color
- on
Methods
-
withBlack(
int subtract, [dynamic strength]) → Color -
Available on Color, provided by the Shading extension
The valuesubtractis subtracted from each RGB channel ofthisand clamped to be non-negative. -
withWhite(
int add, [dynamic strength]) → Color -
Available on Color, provided by the Shading extension
The valueaddis added to each RGB channel ofthisand clamped to be255or less.