rgb()
rgb(integer $r, integer $g, integer $b, float $a = null) : \Pop\Css\Color\Rgb
Instantiate an RGB color object
Parameters
integer | $r | |
integer | $g | |
integer | $b | |
float | $a |
Pop CSS color class
rgb(integer $r, integer $g, integer $b, float $a = null) : \Pop\Css\Color\Rgb
Instantiate an RGB color object
integer | $r | |
integer | $g | |
integer | $b | |
float | $a |
hsl(integer $h, integer $s, integer $l, float $a = null) : \Pop\Css\Color\Hsl
Instantiate an RGB color object
integer | $h | |
integer | $s | |
integer | $l | |
float | $a |
hex(string $hex) : \Pop\Css\Color\Hex
Instantiate an RGB color object
string | $hex |
parse(string $colorString) : \Pop\Css\Color\ColorInterface|object
Parse CSS color from string
string | $colorString |