Sitellite Application Framework
Class Tree         Index         All Elements

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)



[ Top ]



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
[ Top ]



Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:17:06 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2