Colour Colour(
[int
$r = -1], [int
$g = -1], [int
$b = -1], [int
$a = 0]
)
|
|
Creates a new Colour object.
Parameters:
|
int |
$r: |
Red. |
|
int |
$g: |
Green. |
|
int |
$b: |
Blue. |
|
int |
$a: |
Alpha. |
void Darken(
[int
$d = 10]
)
|
|
Darkens the colour by the percent specified by $d.
Parameters:
|
int |
$d: |
The percentage to darken the colour by. |
void Lighten(
[int
$d = 10]
)
|
|
Lightens the colour by the percent specified by $d.
Parameters:
|
int |
$d: |
The percentage to lighten the colour by. |