commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
comms::Hsl Struct Reference

Hue / saturation / lightness, plus unit alpha. More...

#include <color.hpp>

Public Member Functions

constexpr bool operator== (const Hsl &) const =default
 Field-wise equality.
 

Public Attributes

f64 h = 0.0
 Hue in degrees, [0, 360).
 
f64 s = 0.0
 Saturation, [0, 1].
 
f64 l = 0.0
 Lightness, [0, 1].
 
f64 a = 1.0
 Alpha (opacity), [0, 1].
 

Detailed Description

Hue / saturation / lightness, plus unit alpha.


The documentation for this struct was generated from the following file: