Index of all elements
[ a ]
[ c ]
[ f ]
[ g ]
[ h ]
[ i ]
[ m ]
[ n ]
[ r ]
[ w ]
[ _ ]
a
- average
- in file Color2.php, method Image_Color2::average()
Return the average of the RGB value of two Image_Color2 objects. If both objects have an alpha channel it will be averaged too.
top
top
f
- fromArray
- in file Hsl.php, method Image_Color2_Model_Hsl::fromArray()
Pull the HSL components out of the array and return a color model object. Hue is a integer degree between from 0 to 360 and the Saturation and Lightness are floats between 0 and 1.
- fromArray
- in file Named.php, method Image_Color2_Model_Named::fromArray()
- fromArray
- in file Cmyk.php, method Image_Color2_Model_Cmyk::fromArray()
- fromArray
- in file Hsv.php, method Image_Color2_Model_Hsv::fromArray()
Pull the HSV components out of the array and return a color model object.
- fromArray
- in file Model.php, method Image_Color2_Model::fromArray()
Create an Image_Color2_Model from an array of values.
- fromArray
- in file Hex.php, method Image_Color2_Model_Hex::fromArray()
Construct a new Image_Color2_Model from the components in an array. The array format happens to be the PEAR style RGB array so we just hand it off to fromRgb.
- fromArray
- in file WebsafeHex.php, method Image_Color2_Model_WebsafeHex::fromArray()
- fromArray
- in file Grayscale.php, method Image_Color2_Model_Grayscale::fromArray()
Pull the grayscale component out of the array and return a instance of Image_Color2_Model.
- fromRgb
- in file Hsv.php, method Image_Color2_Model_Hsv::fromRgb()
Convert the RGB array into HSV components and return a new Model class.
- fromRgb
- in file Named.php, method Image_Color2_Model_Named::fromRgb()
- fromRgb
- in file Cmyk.php, method Image_Color2_Model_Cmyk::fromRgb()
- fromRgb
- in file Hex.php, method Image_Color2_Model_Hex::fromRgb()
Pass the RGB components to the constructor and return a new instance of Image_Color2_Model.
- fromRgb
- in file Model.php, method Image_Color2_Model::fromRgb()
Create an Image_Color2_Model from an RGB array.
- fromRgb
- in file Grayscale.php, method Image_Color2_Model_Grayscale::fromRgb()
Pass the RGB components to the constructor and return a new instance of Image_Color2_Model.
- fromRgb
- in file Hsl.php, method Image_Color2_Model_Hsl::fromRgb()
- fromRgb
- in file WebsafeHex.php, method Image_Color2_Model_WebsafeHex::fromRgb()
- fromString
- in file WebsafeHex.php, method Image_Color2_Model_WebsafeHex::fromString()
- fromString
- in file Named.php, method Image_Color2_Model_Named::fromString()
- fromString
- in file Hsl.php, method Image_Color2_Model_Hsl::fromString()
Pull the HSL components out of the string and return a color model object. Hue is a integer degree between 0 and 360 while the Saturation and Lightness are either percentages or values between 0 and 1.
- fromString
- in file Cmyk.php, method Image_Color2_Model_Cmyk::fromString()
- fromString
- in file Grayscale.php, method Image_Color2_Model_Grayscale::fromString()
Convert the Grayscale string into RGB components and return a new instance of Image_Color2_Model.
- fromString
- in file Hex.php, method Image_Color2_Model_Hex::fromString()
Convert the hex string into RGB components and return a new instance of Image_Color2_Model. Allow both #abc and #aabbcc forms.
- fromString
- in file Hsv.php, method Image_Color2_Model_Hsv::fromString()
Pull the HSV components out of the string and return a color model object. Hue is a integer degree between from 0 to 360 and the Saturation and Value are either percentages or values between 0 and 1.
- fromString
- in file Model.php, method Image_Color2_Model::fromString()
Create an Image_ColorModel from a color model specific string.
top
g
- getArray
- in file Grayscale.php, method Image_Color2_Model_Grayscale::getArray()
- getArray
- in file Hsv.php, method Image_Color2_Model_Hsv::getArray()
- getArray
- in file Hex.php, method Image_Color2_Model_Hex::getArray()
- getArray
- in file Cmyk.php, method Image_Color2_Model_Cmyk::getArray()
- getArray
- in file Hsl.php, method Image_Color2_Model_Hsl::getArray()
- getArray
- in file Model.php, method Image_Color2_Model::getArray()
Get an array of values to represent a color in this color model. This should be parseable by fromArray() and should include a type element.
- getArray
- in file Named.php, method Image_Color2_Model_Named::getArray()
- getArray
- in file Color2.php, method Image_Color2::getArray()
Return the color in a color model dependant, array format. If the color was specified as an RGB array this will return the same results as getRgb(). Otherwise, the results depend on the underlying color model.
- getHex
- in file Color2.php, method Image_Color2::getHex()
Return a hex string representation of the color.
- getRgb
- in file Named.php, method Image_Color2_Model_Named::getRgb()
- getRgb
- in file Hsv.php, method Image_Color2_Model_Hsv::getRgb()
- getRgb
- in file Hsl.php, method Image_Color2_Model_Hsl::getRgb()
- getRgb
- in file Model.php, method Image_Color2_Model::getRgb()
Get an RGB array of the color.
- getRgb
- in file Hex.php, method Image_Color2_Model_Hex::getRgb()
- getRgb
- in file Grayscale.php, method Image_Color2_Model_Grayscale::getRgb()
- getRgb
- in file Color2.php, method Image_Color2::getRgb()
Return the color as a PEAR style RGB array.
- getRgb
- in file Cmyk.php, method Image_Color2_Model_Cmyk::getRgb()
- getString
- in file Model.php, method Image_Color2_Model::getString()
Get a string to represent a color in this color model. The string should be parsable by fromString().
- getString
- in file Cmyk.php, method Image_Color2_Model_Cmyk::getString()
- getString
- in file Named.php, method Image_Color2_Model_Named::getString()
- getString
- in file Hsv.php, method Image_Color2_Model_Hsv::getString()
- getString
- in file Hsl.php, method Image_Color2_Model_Hsl::getString()
- getString
- in file Color2.php, method Image_Color2::getString()
Return the color as a string. If the color was specified as an RGB array this is exactly the same as calling getHex(). Otherwise, the results depend on the underlying color model.
- getString
- in file Hex.php, method Image_Color2_Model_Hex::getString()
- getString
- in file Grayscale.php, method Image_Color2_Model_Grayscale::getString()
- Grayscale.php
- procedural page Grayscale.php
top
top
i
- Image_Color2
- in file Color2.php, class Image_Color2
Image_Color2 is a PHP5 package to convert between RGB and various other color models.
- Image_Color2_Model
- in file Model.php, class Image_Color2_Model
An interface for color model classes to allow conversion of colors to and from RGB. This class should be imutable, meaning that once it's constructed the value is not changed.
- Image_Color2_Model_Cmyk
- in file Cmyk.php, class Image_Color2_Model_Cmyk
CMYK is a subtractive colormodel used in printing.
- Image_Color2_Model_Grayscale
- in file Grayscale.php, class Image_Color2_Model_Grayscale
Grayscale color model converts RGB values to gray scale using perceptive proportional sum of the RGB channels.
- Image_Color2_Model_Hex
- in file Hex.php, class Image_Color2_Model_Hex
Hex color model defines RGB colors using hexadecimal values for each component.
- Image_Color2_Model_Hsl
- in file Hsl.php, class Image_Color2_Model_Hsl
HSL (also called HSI or HLS) color model defines colors in terms of Hue, Saturation, and Lightness (also Luminance, Luminosity or Intensity).
- Image_Color2_Model_Hsv
- in file Hsv.php, class Image_Color2_Model_Hsv
HSV (also called HSB) color model defines colors in terms of Hue, Saturation, and Value (or Brightness).
- Image_Color2_Model_Named
- in file Named.php, class Image_Color2_Model_Named
Named color model represents colors by looking up the "webstandard" name in a list of corresponding RGB values.
- Image_Color2_Model_WebsafeHex
- in file WebsafeHex.php, class Image_Color2_Model_WebsafeHex
Hex color model that is limited to websafe colors.
top
m
- $model
- in file Color2.php, variable Image_Color2::$model
Color model used to read a non-RGB color. This is assigned by the constructor. If the source color is RGB no color model is needed so this will be null.
- Model.php
- procedural page Model.php
top
top
top
top
_
- $_b
- in file Hex.php, variable Image_Color2_Model_Hex::$_b
Blue component
- $_c
- in file Cmyk.php, variable Image_Color2_Model_Cmyk::$_c
Cyan component
- $_g
- in file Hex.php, variable Image_Color2_Model_Hex::$_g
Green component
- $_h
- in file Hsl.php, variable Image_Color2_Model_Hsl::$_h
Hue component
- $_h
- in file Hsv.php, variable Image_Color2_Model_Hsv::$_h
Hue component
- $_k
- in file Cmyk.php, variable Image_Color2_Model_Cmyk::$_k
Black component
- $_l
- in file Hsl.php, variable Image_Color2_Model_Hsl::$_l
Lightness component
- $_m
- in file Cmyk.php, variable Image_Color2_Model_Cmyk::$_m
Magneta component
- $_name
- in file Named.php, variable Image_Color2_Model_Named::$_name
Name of this color. It should exist in self::$_colornames.
- $_r
- in file Hex.php, variable Image_Color2_Model_Hex::$_r
Red component
- $_s
- in file Hsl.php, variable Image_Color2_Model_Hsl::$_s
Saturation component
- $_s
- in file Hsv.php, variable Image_Color2_Model_Hsv::$_s
Saturation component
- $_v
- in file Hsv.php, variable Image_Color2_Model_Hsv::$_v
Value component
- $_val
- in file Grayscale.php, variable Image_Color2_Model_Grayscale::$_val
Grayscale component
- $_y
- in file Cmyk.php, variable Image_Color2_Model_Cmyk::$_y
Yellow component
- __construct
- in file WebsafeHex.php, method Image_Color2_Model_WebsafeHex::__construct()
Construct the websafe hex color from RGB components. All values will be rounded to the closest websafe value.
- __construct
- in file Named.php, method Image_Color2_Model_Named::__construct()
Construct a named color.
- __construct
- in file Hsv.php, method Image_Color2_Model_Hsv::__construct()
Construct from HSV components.
- __construct
- in file Hex.php, method Image_Color2_Model_Hex::__construct()
Construct the hex color from RGB components.
- __construct
- in file Cmyk.php, method Image_Color2_Model_Cmyk::__construct()
Constuct from four floats.
- __construct
- in file Color2.php, method Image_Color2::__construct()
Construct a color from a string, array, or an instance of Image_Color2_Model.
- __construct
- in file Grayscale.php, method Image_Color2_Model_Grayscale::__construct()
Construct the Grayscale color from RGB components.
- __construct
- in file Hsl.php, method Image_Color2_Model_Hsl::__construct()
Constuct from a integer for Hue, and two floats for Saturation and Lightness.
top
Documentation generated on Mon, 11 Mar 2019 15:39:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|