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

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

Public Typedefs

using TSum = modm::WideType< T >
 

Public Member Functions

constexpr RgbT (T red, T green, T blue)
 
template<std::unsigned_integral U>
requires std::is_same_v< T, uint16_t > &&constexpr std::is_same_v< U, uint8_t > RgbT (const RgbT< U > &rgb_other)
 
template<std::unsigned_integral U>
requires std::is_same_v< T, uint8_t > &&constexpr std::is_same_v< U, uint16_t > RgbT (const RgbT< U > &rgb_other)
 
template<std::unsigned_integral U>
constexpr RgbT (const HsvT< U > &hsv)
 
template<std::unsigned_integral U>
constexpr RgbT (const BrightnessT< U > brightness)
 
constexpr RgbT (const Rgb565 &rgb565)
 
constexpr bool operator== (const RgbT< T > &other) const = default
 

Public Attributes

red {0}
 
green {0}
 
blue {0}
 

Friends

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

Detailed Description

template<std::unsigned_integral T>
class modm::color::RgbT< 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::RgbT< T >::RgbT ( const RgbT< U > &  rgb_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::RgbT< T >::RgbT ( const RgbT< U > &  rgb_other)
inlineconstexpr

Copy Constructor 16bit->8bit

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

Convertion Constructor for HSV Color

Parameters
hsvHSV Color
template<std::unsigned_integral T>
template<std::unsigned_integral U>
constexpr modm::color::RgbT< T >::RgbT ( const BrightnessT< U >  brightness)
inlineconstexpr

Convertion Constructor for Brightness

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

Convertion Constructor for RGB565 Color

Parameters
rgb565RGB565 Color

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