Graph: ezcGraphColor
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphColor
|
ezcGraphColor [
source]
Struct for representing colors in ezcGraph. A color is defined using the common RGBA model with integer values between 0 and 255. An alpha value of zero means full opacity, while 255 means full transparency.
Parents
ezcBaseOptions
|
--ezcGraphColor
Descendents
| Child Class |
Description |
| ezcGraphLinearGradient |
Class representing linear gradient fills. For drivers which cannot draw gradients it falls back to a native ezcGraphColor. In this case the start color of the gradient will be used.
|
| ezcGraphRadialGradient |
Class representing radial gradient fills. For drivers which cannot draw gradients it falls back to a native ezcGraphColor. In this case the start color of the gradient will be used.
|
Properties
|
integer |
read/write
|
$alpha
Alpha RGBA value of color. |
|
integer |
read/write
|
$blue
Blue RGBA value of color. |
|
integer |
read/write
|
$green
Green RGBA value of color. |
|
integer |
read/write
|
$red
Red RGBA value of color. |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
Inherited Methods
From
ezcBaseOptions :
Methods
create
Tries to detect type of color color definition and returns an ezcGraphColor object
Parameters
| Name |
Type |
Description |
$color |
mixed |
Some kind of color definition |
darken
Returns a copy of the current color darkened by the given factor
Parameters
| Name |
Type |
Description |
$value |
float |
Percent to darken the color |
fromFloatArray
Creates an ezcGraphColor object from an array of floats
Parameters
| Name |
Type |
Description |
$array |
array |
Array of float color values |
fromHex
Creates an ezcGraphColor object from a hexadecimal color representation
Parameters
| Name |
Type |
Description |
$string |
mixed |
Hexadecimal color representation |
fromIntegerArray
Creates an ezcGraphColor object from an array of integers
Parameters
| Name |
Type |
Description |
$array |
array |
Array of integer color values |
invert
Inverts and returns a copy of the current color
transparent
Returns a copy of the current color made more transparent by the given factor
Parameters
| Name |
Type |
Description |
$value |
mixed |
Percent to make color mor transparent |
Last updated: Wed, 18 Jun 2008