Index of all elements
[ a ]
[ c ]
[ g ]
[ h ]
[ i ]
[ m ]
[ n ]
[ p ]
[ r ]
[ s ]
top
c
- $color1
- in file Color.php, variable Image_Color::$color1
First color that the class handles for ranges and mixes.
- $color2
- in file Color.php, variable Image_Color::$color2
Second color that the class handles for ranges and mixes.
- changeLightness
- in file Color.php, method Image_Color::changeLightness()
Change the lightness of the class's two colors.
- color2RGB
- in file Color.php, method Image_Color::color2RGB()
Convert a named or hex color string to an RGB array. If the color begins with the # character it will be treated as a hex value. Everything else will be treated as a named color. If the named color is not known, black will be returned.
- Color.php
- procedural page Color.php
top
g
- getRange
- in file Color.php, method Image_Color::getRange()
Get the range of colors between the class's two colors, given a degree.
- getTextColor
- in file Color.php, method Image_Color::getTextColor()
Determine if a light or dark text color would be more readable on a background of a given color. This is determined by the G(reen) value of RGB. You can change the dark and the light colors from their default black and white.
top
h
- hex2rgb
- in file Color.php, method Image_Color::hex2rgb()
Convert a hex color string into an RGB array. An extra fourth element will be returned with the original hex value.
- hsv2hex
- in file Color.php, method Image_Color::hsv2hex()
Convert HSV (Hue, Saturation, Brightness) to a hex color string.
- hsv2rgb
- in file Color.php, method Image_Color::hsv2rgb()
Convert an HSV (Hue, Saturation, Brightness) value to RGB.
top
i
- Image_Color
- in file Color.php, class Image_Color
Image_Color handles color conversion and mixing.
top
m
- mixColors
- in file Color.php, method Image_Color::mixColors()
Mix two colors together by finding their average. If the colors are not passed as parameters, the class's colors will be mixed instead.
top
n
- namedColor2RGB
- in file Color.php, method Image_Color::namedColor2RGB()
Convert a named color to an RGB array. If the color is unknown black is returned.
top
top
top
s
- setColors
- in file Color.php, method Image_Color::setColors()
Set the two colors this class uses for mixing and ranges.
- setWebSafe
- in file Color.php, method Image_Color::setWebSafe()
Determines whether colors the returned by this class will be rounded to the nearest web safe value.
top
Documentation generated on Mon, 11 Mar 2019 15:37:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|