template<class T>
Magnum::Math::ColorHsv struct

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(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.
ColorHsv(std::tuple<Deg<T>, T, T> hsv) deprecated constexpr noexcept
Construct from Color3::Hsv.
operator std::tuple<Deg<T>, T, T>() const deprecated constexpr
Convert to Color3::Hsv.
operator std::tuple<Deg<T>&, T&, T&>()
operator std::tuple<const Deg<T>&, const T&, const T&>() const constexpr

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>
Magnum::Math::ColorHsv<T>::ColorHsv(std::tuple<Deg<T>, T, T> hsv) constexpr noexcept

Construct from Color3::Hsv.

template<class T>
Magnum::Math::ColorHsv<T>::operator std::tuple<Deg<T>, T, T>() const constexpr

Convert to Color3::Hsv.

template<class T>
Magnum::Math::ColorHsv<T>::operator std::tuple<Deg<T>&, T&, T&>()

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<class T>
Magnum::Math::ColorHsv<T>::operator std::tuple<const Deg<T>&, const T&, const T&>() const constexpr

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

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

Debug output operator.