Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
HtmlColor Struct Reference

#include <HtmlColor.h>

Public Member Functions

 HtmlColor (uint32_t color)
 
 HtmlColor (const RgbColor &color)
 
 HtmlColor ()
 
bool operator== (const HtmlColor &other) const
 
bool operator!= (const HtmlColor &other) const
 
template<typename T_HTMLCOLORNAMES >
size_t Parse (const char *name, size_t nameSize)
 
template<typename T_HTMLCOLORNAMES >
size_t Parse (const char *name)
 
template<typename T_HTMLCOLORNAMES >
size_t Parse (String const &name)
 
template<typename T_HTMLCOLORNAMES >
size_t ToString (char *buf, size_t bufSize) const
 
size_t ToNumericalString (char *buf, size_t bufSize) const
 

Static Public Member Functions

static HtmlColor BilinearBlend (const HtmlColor &c00, const HtmlColor &c01, const HtmlColor &c10, const HtmlColor &c11, float x, float y)
 

Public Attributes

uint32_t Color
 

Constructor & Destructor Documentation

◆ HtmlColor() [1/3]

HtmlColor::HtmlColor ( uint32_t  color)
inline

◆ HtmlColor() [2/3]

HtmlColor::HtmlColor ( const RgbColor color)
inline

◆ HtmlColor() [3/3]

HtmlColor::HtmlColor ( )
inline

Member Function Documentation

◆ BilinearBlend()

static HtmlColor HtmlColor::BilinearBlend ( const HtmlColor c00,
const HtmlColor c01,
const HtmlColor c10,
const HtmlColor c11,
float  x,
float  y 
)
inlinestatic

◆ operator!=()

bool HtmlColor::operator!= ( const HtmlColor other) const
inline

◆ operator==()

bool HtmlColor::operator== ( const HtmlColor other) const
inline

◆ Parse() [1/3]

template<typename T_HTMLCOLORNAMES >
size_t HtmlColor::Parse ( const char *  name)
inline

◆ Parse() [2/3]

template<typename T_HTMLCOLORNAMES >
size_t HtmlColor::Parse ( const char *  name,
size_t  nameSize 
)
inline

◆ Parse() [3/3]

template<typename T_HTMLCOLORNAMES >
size_t HtmlColor::Parse ( String const &  name)
inline

◆ ToNumericalString()

size_t HtmlColor::ToNumericalString ( char *  buf,
size_t  bufSize 
) const

◆ ToString()

template<typename T_HTMLCOLORNAMES >
size_t HtmlColor::ToString ( char *  buf,
size_t  bufSize 
) const
inline

Member Data Documentation

◆ Color

uint32_t HtmlColor::Color