Some useful colour-related utility functions.
Adjust the alpha of a given colour |
|
Brighten/darken input colour by percent and adjust alpha |
|
Get the best color to use for the label that will be drawn on |
|
Gets the default highlight color. |
Adjust the alpha of a given colour
Brighten/darken input colour by percent and adjust alpha channel if needed. Returns the modified color.
Get the best color to use for the label that will be drawn on top of the given color.