#include <Magnum/Math/Color.h>
template<class T>
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 .
- T saturation
- Saturation, in range .
- T value
- Value, in range .
Function documentation
template<class T>
Magnum:: Math:: ColorHsv<T>:: ColorHsv() constexpr noexcept
Default constructor.
Equivalent to ColorHsv(ZeroInitT).
template<class T>
template<class T>
Debug& operator<<(Debug& debug,
const ColorHsv<T>& value)
Debug output operator.