__construct() __construct(integer $r, integer $g, integer $b, float $a = null) Constructor Instantiate the CSS RGB color object Parameters integer $r integer $g integer $b float $a
setR() setR(integer $r) : self Set R value Parameters integer $r Throws \OutOfRangeException Returns self
setG() setG(integer $g) : self Set G value Parameters integer $g Throws \OutOfRangeException Returns self
setB() setB(integer $b) : self Set B value Parameters integer $b Throws \OutOfRangeException Returns self
setA() setA(float $a) : self Set A value Parameters float $a Throws \OutOfRangeException Returns self
hasAlpha() hasAlpha() : boolean Determine if the color object has an alpha value (alias) Returns boolean
toArray() toArray(boolean $assoc = true) : array Convert to array Parameters boolean $assoc Returns array
__set() __set(string $name, mixed $value) : void Magic method to set the color value Parameters string $name mixed $value
__get() __get(string $name) : mixed Magic method to return the color value Parameters string $name Returns mixed
__isset() __isset(string $name) : boolean Magic method to return whether the color value exists Parameters string $name Returns boolean
__unset() __unset(string $name) : void Magic method to unset color value Parameters string $name Throws \Pop\Css\Color\Exception
offsetExists() offsetExists(mixed $offset) : boolean ArrayAccess offsetExists Parameters mixed $offset Returns boolean
offsetGet() offsetGet(mixed $offset) : mixed ArrayAccess offsetGet Parameters mixed $offset Throws \Pop\Css\Color\Exception Returns mixed
offsetSet() offsetSet(mixed $offset, mixed $value) : void ArrayAccess offsetSet Parameters mixed $offset mixed $value Throws \Pop\Css\Color\Exception
offsetUnset() offsetUnset(mixed $offset) : void ArrayAccess offsetUnset Parameters mixed $offset Throws \Pop\Css\Color\Exception