diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-04 12:32:58 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-04 12:32:58 +0000 |
commit | 77164b43d94618e02f7a1c89708baca72758ca3d (patch) | |
tree | c997d9f5c3bf73cce630b859171587e27721deb4 /src/colors | |
parent | a39691f135871fd24f67eb121278a82f9318a756 (diff) | |
download | zetacomponents-graph-77164b43d94618e02f7a1c89708baca72758ca3d.zip zetacomponents-graph-77164b43d94618e02f7a1c89708baca72758ca3d.tar.gz |
- Added text shadow to font options
- Added text shadow support in SVG and GD driver
Diffstat (limited to 'src/colors')
-rw-r--r-- | src/colors/color.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/colors/color.php b/src/colors/color.php index 9784388..e987432 100644 --- a/src/colors/color.php +++ b/src/colors/color.php @@ -223,6 +223,23 @@ class ezcGraphColor extends ezcBaseOptions } /** + * Inverts and returns a copy of the current color + * + * @return ezcGraphColor New Color + */ + public function invert() + { + $color = new ezcGraphColor(); + + $color->red = 255 - $this->red; + $color->green = 255 - $this->green; + $color->blue = 255 - $this->blue; + $color->alpha = $this->alpha; + + return $color; + } + + /** * Returns a copy of the current color darkened by the given factor * * @param float $value Percent to darken the color |