diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-05-09 08:50:57 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-05-09 08:50:57 +0000 |
commit | ded1cd35661c0a5536cc236e694f7cf6a9b79c19 (patch) | |
tree | a50b76078fa81bb2f59ea49c8f6c9938297fb846 /src/structs | |
parent | 0cf687a2469cbcc2682a53634269d4da18eb1100 (diff) | |
download | zetacomponents-graph-ded1cd35661c0a5536cc236e694f7cf6a9b79c19.zip zetacomponents-graph-ded1cd35661c0a5536cc236e694f7cf6a9b79c19.tar.gz |
- Added static methods to ezcGraphColor to create colors from deifferent color
representations
Diffstat (limited to 'src/structs')
-rw-r--r-- | src/structs/color.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/structs/color.php b/src/structs/color.php index 049610a..2ad24be 100644 --- a/src/structs/color.php +++ b/src/structs/color.php @@ -32,6 +32,47 @@ class ezcGraphColor { throw new ezcBasePropertyNotFoundException( $name ); } + + /** + * Creates an ezcGraphColor object from a hexadecimal color representation + * + * @param mixed $string Hexadecimal color representation + * @return ezcGraphColor + */ + static public function fromHex( $string ) + { + } + + /** + * Creates an ezcGraphColor object from an array of integers + * + * @param array $array Array of integer color values + * @return ezcGraphColor + */ + static public function fromIntegerArray( array $array ) + { + } + + /** + * Creates an ezcGraphColor object from an array of floats + * + * @param array $array Array of float color values + * @return ezcGraphColor + */ + static public function fromFloatArray( array $array ) + { + } + + /** + * Tries to detect type of color color definition and returns an + * ezcGraphColor object + * + * @param mixed $color Some kind of color definition + * @return ezcGraphColor + */ + static public function create( $color ) + { + } } ? |