modm API documentation
modm::color::HsvT< T > Class Template Reference

Color in HSV Colorspace. More...

#include <modm/ui/color/hsv.hpp>

Public Member Functions

constexpr HsvT (T hue, T saturation, T value)
 
template<std::unsigned_integral U>
requires std::is_same_v< T, uint16_t > &&constexpr std::is_same_v< U, uint8_t > HsvT (const HsvT< U > &hsv_other)
 
template<std::unsigned_integral U>
requires std::is_same_v< T, uint8_t > &&constexpr std::is_same_v< U, uint16_t > HsvT (const HsvT< U > &hsv_other)
 
template<std::unsigned_integral U>
constexpr HsvT (const RgbT< U > &rgb)
 
template<std::unsigned_integral U>
constexpr HsvT (const BrightnessT< U > gray)
 
constexpr HsvT (const Rgb565 &rgb565)
 
constexpr bool operator== (const HsvT< T > &other) const = default
 

Public Attributes

hue {0}
 
saturation {0}
 
value {0}
 

Friends

template<std::unsigned_integral U>
IOStreamoperator<< (IOStream &, const HsvT< U > &)
 

Detailed Description

template<std::unsigned_integral T>
class modm::color::HsvT< T >

Color in HSV Colorspace.

Author
Martin Rosekeit, Fabian Greif, Niklas Hauser, David Hebbeker, Thomas Sommer

Constructor & Destructor Documentation

template<std::unsigned_integral T>
template<std::unsigned_integral U>
requires std::is_same_v<T, uint16_t>&& constexpr std::is_same_v<U, uint8_t> modm::color::HsvT< T >::HsvT ( const HsvT< U > &  hsv_other)
inlineconstexpr

Copy Constructor 8bit->16bit

template<std::unsigned_integral T>
template<std::unsigned_integral U>
requires std::is_same_v<T, uint8_t>&& constexpr std::is_same_v<U, uint16_t> modm::color::HsvT< T >::HsvT ( const HsvT< U > &  hsv_other)
inlineconstexpr

Copy Constructor 16bit->8bit

template<std::unsigned_integral T>
template<std::unsigned_integral U>
constexpr modm::color::HsvT< T >::HsvT ( const RgbT< U > &  rgb)
constexpr

Convertion Constructor for RGB Color

Parameters
rgbRGB Color
template<std::unsigned_integral T>
template<std::unsigned_integral U>
constexpr modm::color::HsvT< T >::HsvT ( const BrightnessT< U >  gray)
inlineconstexpr

Convertion Constructor for Brightness

Parameters
brightnessBrightness 'Color'-object
template<std::unsigned_integral T>
constexpr modm::color::HsvT< T >::HsvT ( const Rgb565 rgb565)
inlineconstexpr

Convertion Constructor for RGB565 Color

Parameters
rgb565RGB565 Color

The documentation for this class was generated from the following files: