Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
RgbColorBase Struct Reference

#include <RgbColorBase.h>

Inheritance diagram for RgbColorBase:
Rgb16Color Rgb48Color RgbColor Rgbw64Color RgbwColor RgbwwColor

Static Protected Member Functions

static float _CalcColor (float p, float q, float t)
 
static void _HslToRgb (const HslColor &color, float *r, float *g, float *b)
 
static void _HsbToRgb (const HsbColor &color, float *r, float *g, float *b)
 
template<typename T_COLOR , typename T_RESULT >
static T_RESULT _Compare (const T_COLOR &left, const T_COLOR &right, T_RESULT epsilon)
 

Member Function Documentation

◆ _CalcColor()

float RgbColorBase::_CalcColor ( float  p,
float  q,
float  t 
)
staticprotected

◆ _Compare()

template<typename T_COLOR , typename T_RESULT >
static T_RESULT RgbColorBase::_Compare ( const T_COLOR &  left,
const T_COLOR &  right,
T_RESULT  epsilon 
)
inlinestaticprotected

◆ _HsbToRgb()

void RgbColorBase::_HsbToRgb ( const HsbColor color,
float *  r,
float *  g,
float *  b 
)
staticprotected

◆ _HslToRgb()

void RgbColorBase::_HslToRgb ( const HslColor color,
float *  r,
float *  g,
float *  b 
)
staticprotected