Creates a new Gradient object.
Parameters:
|
Colour |
$start: |
The start colour. |
|
Colour |
$end: |
The end colour. |
void Add(
Colour
$clr, int
$percent
)
|
|
Inserts a colour to be used at $percent percent of the way through the gradient.
Parameters:
|
Colour |
$clr: |
The colour to add. |
|
int |
$percent: |
The percent of the way through. |
Colour GetColour(
int
$pos, int
$w
)
|
|
Returns the colour to use at a point in a gradient.
Parameters:
|
int |
$pos: |
The position in the rendering. |
|
int |
$w: |
The width of the gradient area. |