summaryrefslogtreecommitdiffstats
path: root/src/colors
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-04 12:32:58 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-04 12:32:58 +0000
commit77164b43d94618e02f7a1c89708baca72758ca3d (patch)
treec997d9f5c3bf73cce630b859171587e27721deb4 /src/colors
parenta39691f135871fd24f67eb121278a82f9318a756 (diff)
downloadzetacomponents-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.php17
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
OpenPOWER on IntegriCloud