Add wxColour::GetLuminance()
This method can be used to return the perceived brightness of the colour. Closes https://github.com/wxWidgets/wxWidgets/pull/1300
This commit is contained in:
@@ -154,6 +154,10 @@ public:
|
||||
bool Ok() const { return IsOk(); }
|
||||
#endif
|
||||
|
||||
// Return the perceived brightness of the colour, with 0 for black and 1
|
||||
// for white.
|
||||
double GetLuminance() const;
|
||||
|
||||
// manipulation
|
||||
// ------------
|
||||
|
||||
|
Reference in New Issue
Block a user