Login   Register  
PHP Classes

xColor: Manipulate color values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Robert Eisele
Name: Robert Eisele <e-mail contact>
Packages: 4 Browse all classes by Robert Eisele Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 26
All time rank: 2097136 in Germany Germany
Week rank: 2051 Up120 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz  
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

  Classes of Robert Eisele  >  xColor  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: xColor
Base name: xcolor
Description: Manipulate color values
Version: -
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 505 users
All time rank: 5147
Week users: 0 users
Week rank: 1693 Equal
  Groups   Freshmeat project   Rate classes User ratings   Applications   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes

  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

  Freshmeat project  
Project record: php-xcolor
Popularity score: 14.73
Vitality score: 39.68

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download Download all files: xcolor.tar.gz xcolor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.