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

Hue / saturation / value (brightness), plus unit alpha. More...

#include <color.hpp>

Public Member Functions

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

Public Attributes

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

Detailed Description

Hue / saturation / value (brightness), plus unit alpha.


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