|
aest 0.1.0
Collection of C++ utility libraries
|
Lightness of OKLab, the perceived lightness, 1 being D65 white. More...
Static Public Member Functions | |
| static constexpr float | get (const OKLab &color) noexcept |
Get the lightness of color. | |
| static constexpr OKLab | set (const OKLab &color, const float lightness, const float end) |
Copy color with a new lightness, on the straight line toward white or black. | |
Lightness of OKLab, the perceived lightness, 1 being D65 white.
Definition at line 669 of file Operations.cppm.
|
inlinestaticconstexprnoexcept |
Get the lightness of color.
| [in] | color | The color to read |
Definition at line 676 of file Operations.cppm.
|
inlinestaticconstexpr |
Copy color with a new lightness, on the straight line toward white or black.
| [in] | color | The color to copy |
| [in] | lightness | The new perceived lightness |
| [in] | end | The lightness the color moves toward: 1 for white, 0 for black |
end, so the hue is kept and end is gray. Definition at line 687 of file Operations.cppm.