|
Procedural File: Colour.php
Source Location: Program_Root/Misc/Colour.php
Classes:
Page Details:
Returns the difference between two colours, measured in percentage of the first (the higher the percentage value, the closer to the first colour it will be). Percentage is specified as a decimal value. The colours are 3 or 6 character hex values.
colour_diff [line 15]
void colour_diff(
mixed $c1, mixed $c2, mixed $percent)
|
|
colour_gradient [line 34]
array colour_gradient(
string $c1, string $c2, [int $divisions = 10])
|
|
Returns an array of colours between the two specified colours. The first and last values are always the two colours themselves.
Parameters
| string |
$c1 |
first colour |
| string |
$c2 |
second colour |
| int |
$divisions |
number of divisions to the gradient |
|
|