template<class T>
Magnum::Math::ColorHsv struct new in 2019.10

HSV color.

Storage-only type with just the usual constructors and (non-)equality comparison.

Constructors, destructors, conversion operators

ColorHsv() constexpr noexcept
Default constructor.
ColorHsv(ZeroInitT) explicit constexpr noexcept
Construct a zero color.
ColorHsv(Magnum::NoInitT) explicit noexcept
Construct without initializing the contents.
ColorHsv(Deg<T> hue, T saturation, T value) constexpr noexcept
Constructor.
template<class U>
ColorHsv(const ColorHsv<U>& other) explicit constexpr noexcept
Construct from different type.

Public functions

auto operator==(const ColorHsv<T>& other) const -> bool
Equality comparison.
auto operator!=(const ColorHsv<T>& other) const -> bool
Non-equality comparison.

Public variables

Deg<T> hue
Hue, in range $ [0.0, 360.0] $ .
T saturation
Saturation, in range $ [0.0, 1.0] $ .
T value
Value, in range $ [0.0, 1.0] $ .

Function documentation

template<class T>
Magnum::Math::ColorHsv<T>::ColorHsv() constexpr noexcept

Default constructor.

Equivalent to ColorHsv(ZeroInitT).

template<class T>
Magnum::Math::ColorHsv<T>::ColorHsv(ZeroInitT) explicit constexpr noexcept

Construct a zero color.

All members are set to zero.

template<class T> template<class U>
Magnum::Math::ColorHsv<T>::ColorHsv(const ColorHsv<U>& other) explicit constexpr noexcept

Construct from different type.

Performs only default casting on the values, no rounding or anything else.

template<class T> template<class T>
Debug& operator<<(Debug& debug, const ColorHsv<T>& value)

Debug output operator.