Hlls
in package
hue, lightness, luminosity, and saturation object for color
Table of Contents
Properties
- $hue : int
- $lightness : int
- $luminosity : int
- $saturation : int
Methods
- __construct() : mixed
- The constructor.
- getHue() : int
- Gets the Hue
- getLightness() : int
- Gets the Lightness
- getLuminosity() : int
- Gets the Luminosity
- getSaturation() : int
- Gets the Saturation
Properties
$hue
protected
int
$hue
= 0
Hue
$lightness
protected
int
$lightness
= 0
Lightness
$luminosity
protected
int
$luminosity
= 0
Luminosity
$saturation
protected
int
$saturation
= 0
Saturation
Methods
__construct()
The constructor.
public
__construct(int $h, int $li, int $l, int $s) : mixed
Setup the default settings, and overwrite them if the config key is defined in the paramater.
Parameters
- $h : int
-
Hue
- $li : int
-
Lightness
- $l : int
-
Lumonisity
- $s : int
-
Saturation
getHue()
Gets the Hue
public
getHue() : int
Return values
int —Hue value
getLightness()
Gets the Lightness
public
getLightness() : int
Return values
int —Lightness value
getLuminosity()
Gets the Luminosity
public
getLuminosity() : int
Return values
int —Luminosity value
getSaturation()
Gets the Saturation
public
getSaturation() : int
Return values
int —Saturation value