Shading extension
🔦 WithShading
extends Color
- ⬜ withWhite: Add a single value to all RGB channels
- ⬛ withBlack: Subtract a single value from all RGB channels
Methods
-
withBlack(int subtract, [dynamic strength])
→ Color
-
The value
subtract
is subtracted from each RGB channel of this
and clamped to be non-negative.
-
withWhite(int add, [dynamic strength])
→ Color
-
The value
add
is added to each RGB channel of this
and clamped to be 255
or less.