summaryrefslogtreecommitdiffstats
path: root/src/structs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-12 11:09:21 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-12 11:09:21 +0000
commitcbb748d7d430f2244839ed37ada0647a020ce7cd (patch)
tree94ae4cfed98646420e00fdb11abe9bed1920259c /src/structs
parente70916dae91a1ca09f7464090d1739e7acedc1c7 (diff)
downloadzetacomponents-graph-cbb748d7d430f2244839ed37ada0647a020ce7cd.zip
zetacomponents-graph-cbb748d7d430f2244839ed37ada0647a020ce7cd.tar.gz
- Added tests and basic implementation for pie charts
Diffstat (limited to 'src/structs')
-rw-r--r--src/structs/color.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/structs/color.php b/src/structs/color.php
index 38dbbeb..a65dc31 100644
--- a/src/structs/color.php
+++ b/src/structs/color.php
@@ -213,9 +213,9 @@ class ezcGraphColor
$color = clone $this;
$value = 1 - $value;
- $color->red *= $value;
- $color->green *= $value;
- $color->blue *= $value;
+ $color->red = (int) round( $this->red * $value );
+ $color->green = (int) round( $this->green * $value );
+ $color->blue = (int) round( $this->blue * $value );
return $color;
}
OpenPOWER on IntegriCloud