Aspose.Barcode for PHP via Java Generation and Recognition API docs
|
Public Member Functions | |
__construct (int $h, int $s, int $l, float $a) | |
Static Public Member Functions | |
static | convertHslaToRgba (HslaColor $hslaColor) |
Public Attributes | |
$H | |
$S | |
$L | |
$A = 0.0 | |
Static Private Member Functions | |
static | checkHue (int $value) |
static | checkSatLight (int $value) |
static | checkAlpha (float $value) |
static | hueToRgb (float $p, float $q, float $t) |
Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
HslaColor::__construct | ( | int | $h, |
int | $s, | ||
int | $l, | ||
float | $a | ||
) |
Constructor for HslaColor
$h | Hue [0, 360] |
$s | Saturation [0, 100] |
$l | Lightness [0, 100] |
$a | Alpha (opacity) [0.0f, 1.0f] |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
hslaColor | HSLA color to convert |
|
staticprivate |
HslaColor::$A = 0.0 |
Alpha (opacity) [0.0f, 1.0f]
HslaColor::$H |
Hue [0, 360]
HslaColor::$L |
Lightness [0, 100]
HslaColor::$S |
Saturation [0, 100]