PHP Classes

xColor: Manipulate color values

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 527 This week: 1All time: 5,670 This week: 560Up
Version License PHP version Categories
xcolor 1.0GNU General Publi...5.0PHP 5, Graphics
Description 

Author

This class can be used to manipulate color values.

It can perform several types of operations with colors like:

- Merging two colors with a given level the opacity
- Invert a color
- Complement two colors
- Add two colors
- Subtract two colors
- Multiply two colors
- Get the average between two colors
- Lighten a color
- Get parts of two colors
- Get the grey version of a color
- Get the Web safe version of a color
- Get a color for text to contrast well on a given background color
- Determine if a text color is readable on given background color
- Get the distance between two colors
- Get an array of gradient colors
- Get the gradient level of a given color between colors

Innovation Award
PHP Programming Innovation award nominee
January 2010
Number 8


Prize: One year server license IP to country region city database
Color effects can be used to implement nice visual presentations in Web pages.

This class provides an extensive list of ways to manipulate colors that may be useful for implementing color based visual effects in pages generated by PHP.

Manuel Lemos
Picture of Robert Eisele
Name: Robert Eisele <contact>
Classes: 4 packages by
Country: Germany Germany
Age: 36
All time rank: 2247140 in Germany Germany
Week rank: 416 Up16 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file adcanced-example.php Example Advanced Example
Accessible without login Plain text file example.php Example example file for xColor
Plain text file xColor.php Class Main Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:527
This week:1
All time:5,670
This week:560Up