Aspose.Barcode for Python via Java Generation and Recognition API docs

Class for representing HSLA color (Hue, Saturation, Lightness, Alpha) More...

Public Member Functions

None __init__ (self, int h, int s, int l, float a)
 Constructor for HslaColor. More...
 

Static Public Member Functions

None checkAlpha (float value)
 
None checkHue (int value)
 
None checkSatLight (int value)
 
Tuple[int, int, int, int] convertHslaToRgba (HslaColor hslaColor)
 
float hueToRgb (float p, float q, float t)
 

Detailed Description

Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
int  h,
int  s,
int  l,
float  a 
)

Constructor for HslaColor.

Parameters
hHue [0, 360]
sSaturation [0, 100]
lLightness [0, 100]
aAlpha (opacity) [0.0f, 1.0f]

Member Function Documentation

◆ checkAlpha()

None checkAlpha ( float  value)
static

◆ checkHue()

None checkHue ( int  value)
static

◆ checkSatLight()

None checkSatLight ( int  value)
static

◆ convertHslaToRgba()

Tuple[int, int, int, int] convertHslaToRgba ( HslaColor  hslaColor)
static

◆ hueToRgb()

float hueToRgb ( float  p,
float  q,
float  t 
)
static