WithShading extension

⬛⬜ Color Extension WithShading

Color.withBlack(int subtract) darkens Color's RGB values by subtract (result >= 0)

Color.withWhite(int add) brightens Color's RGB values by add (result <= 255)

on

Methods

withBlack(int subtract) Color
[...]
withWhite(int add) Color
[...]