Login   Register  
PHP Classes
elePHPant
Icontem

xColor: Manipulate color values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-03-08 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 515 This week: 1All time: 5,213 This week: 1,442Up
Version License PHP version Categories  
xcolor 1.0GNU General Public Lice...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: 26
All time rank: 2115138 in Germany Germany
Week rank: 1116 Up56 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:515All time:5,213
 This week:1This week:1,442Up