ColorValue
class ColorValue extends Value (View source)
Properties
protected mixed | $r | The value of the red channel. |
|
protected mixed | $g | The value of the green channel. |
|
protected mixed | $b | The value of the blue channel. |
|
protected mixed | $a | The value of the alpha channel. |
Methods
Set the value of the red channel.
Set the value of the green channel.
Set the value of the blue channel.
Set the value of the alpha channel.
Get the value of the red channel.
Get the value of the green channel.
Get the value of the blue channel.
Get the value of the alpha channel.
Is the alpha channel set?
No description
Details
$this
setRed(mixed $r)
Set the value of the red channel.
$this
setGreen(mixed $g)
Set the value of the green channel.
$this
setBlue(mixed $b)
Set the value of the blue channel.
$this
setAlpha(mixed $a)
Set the value of the alpha channel.
mixed
getRed()
Get the value of the red channel.
mixed
getGreen()
Get the value of the green channel.
mixed
getBlue()
Get the value of the blue channel.
mixed
getAlpha()
Get the value of the alpha channel.
bool
hasAlpha()
Is the alpha channel set?
jsonSerialize()
No description