|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 153 ||All time: 8,988 This week: 189|
This class can manipulate colors and generate color lists.
It takes a base color and the number of colors to generate and it returns an array with the color values with an increasing hue value.
The class can also perform other color manipulation functions like:
- Converting a color from rgbHEX (RRGGBB) to array with decimal RGB values and vice-versa
- Convert color RGB to HSL and vice-versa
- Return black or white color based on the lightness of a given color
|Some colors are more intense than others. To make a text more readable it is better that the text is displayed in a color that has a great contrast level with the background color. Usually the best colors to contrast are either black or white.
This class can determine whether the best color to contrast is black or white. It can also generate color lists that fade between to given colors.
This is Simple PHP Static Helper Class for RGB To HSL/HSL to RGB color manipulation and Color List Generator.
Color lists may used for some task: generate unique colors with same lightness, generate paletes for ChartDirector and others
Class include few static function for color manipulations
$count = 8;
$color = '3d628e';
$colors = ColorTools::ColorArrayGenerator($count,$color,true);
 => #3d628e
 => #553d8e
 => #8e3d8b
 => #8e3d4e
 => #8e693d
 => #768e3d
 => #3d8e40
 => #3d8e7d
Use this colors for generate some color blocks
Nic Latyshev <email@example.com>
This work is dual-licensed under the GPL v3 and the MIT license.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.