HslaColor

HslaColor class

Module: aspose_barcode.generation.hsla_color

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

Constructors

NameDescription
initConstructor for HslaColor.

Methods

NameReturn TypeStaticDescription
check_alphaNoneYes
check_hueNoneYes
check_sat_lightNoneYes
convert_hsla_to_rgbaTuple[int, int, int, int]Yes
hue_to_rgbfloatYes

HslaColor Constructor

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

Constructor for HslaColor.

ParameterTypeDescription
hintHue [0, 360]
sintSaturation [0, 100]
lintLightness [0, 100]
afloatAlpha (opacity) [0.0f, 1.0f]

HslaColor.check_alpha (static)

check_alpha(float value)
ParameterTypeDescription
valuefloat

HslaColor.check_hue (static)

check_hue(int value)
ParameterTypeDescription
valueint

HslaColor.check_sat_light (static)

check_sat_light(int value)
ParameterTypeDescription
valueint

HslaColor.convert_hsla_to_rgba (static)

convert_hsla_to_rgba(HslaColor hsla_color) -> Tuple[int, int, int, int]
ParameterTypeDescription
hsla_colorHslaColor

Return Type: Tuple[int, int, int, int]

HslaColor.hue_to_rgb (static)

hue_to_rgb(float p, float q, float t) -> float
ParameterTypeDescription
pfloat
qfloat
tfloat

Return Type: float