wx.lib.colourutils¶
Some useful colour-related utility functions.
Functions Summary¶
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. |
Functions¶
- AdjustAlpha(colour, alpha)¶
Adjust the alpha of a given colour
- AdjustColour(color, percent, alpha=wx.ALPHA_OPAQUE)¶
Brighten/darken input colour by percent and adjust alpha channel if needed. Returns the modified color.
- BestLabelColour(color, bw=False)¶
Get the best color to use for the label that will be drawn on top of the given color.