![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Class representing a color in HSL format. More...
#include <duckcpp/core/engine/SColor.hpp>
Public Member Functions | |
SColorHSL (dcpp::float32_kt h=0.f, dcpp::float32_kt s=0.f, dcpp::float32_kt l=0.f) | |
void | fromRGB (const SColorf &color) |
void | toRGB (SColorf &color) const |
Public Attributes | |
dcpp::float32_kt | Hue |
dcpp::float32_kt | Saturation |
dcpp::float32_kt | Luminance |
Class representing a color in HSL format.
The color values for hue, saturation, luminance are stored in 32bit floating point variables. Hue is in range [0,360], Luminance and Saturation are in percent [0,100]