#include <KoColorSpaceMaths.h>
|
| template<class TReal > |
| static TReal | getLightness (TReal r, TReal g, TReal b) |
| |
| template<class TReal > |
| static TReal | getSaturation (TReal r, TReal g, TReal b) |
| |
Definition at line 909 of file KoColorSpaceMaths.h.
◆ getLightness()
template<class TReal >
| static TReal HSYType::getLightness |
( |
TReal | r, |
|
|
TReal | g, |
|
|
TReal | b ) |
|
inlinestatic |
Definition at line 912 of file KoColorSpaceMaths.h.
912 {
913 return TReal(0.299)*
r + TReal(0.587)*g + TReal(0.114)*
b;
914 }
◆ getSaturation()
template<class TReal >
| static TReal HSYType::getSaturation |
( |
TReal | r, |
|
|
TReal | g, |
|
|
TReal | b ) |
|
inlinestatic |
◆ lightnessIsAverage
| constexpr bool HSYType::lightnessIsAverage = true |
|
staticconstexpr |
The documentation for this struct was generated from the following file: