Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::HSL_t Struct Reference

Hue, Saturation and Intensity 32 bit floating point values. More...

Public Member Functions

void Interpolate (const HSL_t *pInput1, const HSL_t *pInput2, float fFactor, uint_t bDirection=0)
 Interpolate between two HSL colors.
 

Public Attributes

float m_fHue
 32 bit float hue 0 to 1.0f
 
float m_fSaturation
 32 bit float saturation 0 to 1.0f
 
float m_fLuminance
 32 bit float luminance 0 to 1.0f
 

Detailed Description

Hue, Saturation and Intensity 32 bit floating point values.


Structure that contains the hue, saturation and intensity (in that order) color components where the value of 0.0f mean absence of color and 1.0f is the maximum color

See also
RGBFloat_t

Member Function Documentation

◆ Interpolate()

void BURGER_API Burger::HSL_t::Interpolate ( const HSL_t * pInput1,
const HSL_t * pInput2,
float fFactor,
uint_t bDirection = 0 )

Interpolate between two HSL colors.


Given two colors, determine the linear interpolation between them. The direction of the color wheel can be switched with bDirection being FALSE for red->green->blue while TRUE goes blue->green->red.

Parameters
pInput1Pointer to the first color
pInput2Pointer to the second color
fFactorInterpolation value between 0.0f and 1.0f
bDirectionFALSE for Red to Green to Blue, TRUE for Red to Blue to Green

Member Data Documentation

◆ m_fHue

float Burger::HSL_t::m_fHue

32 bit float hue 0 to 1.0f

◆ m_fLuminance

float Burger::HSL_t::m_fLuminance

32 bit float luminance 0 to 1.0f

◆ m_fSaturation

float Burger::HSL_t::m_fSaturation

32 bit float saturation 0 to 1.0f