Some useful colour-related utility functions.
AdjustAlpha | Adjust the alpha of a given colour |
AdjustColour | Brighten/Darken input colour by percent and adjust alpha |
BestLabelColour | Get the best color to use for the label that will be drawn on |
GetHighlightColour | Get 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.
Parameters: |
|
---|
Get the best color to use for the label that will be drawn on top of the given color.
Parameters: |
|
---|