From a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:44:46 +0400 Subject: restructuring of boca's git --- boca-1.5.0/src/libchart/classes/Color.php | 74 ------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 boca-1.5.0/src/libchart/classes/Color.php (limited to 'boca-1.5.0/src/libchart/classes/Color.php') diff --git a/boca-1.5.0/src/libchart/classes/Color.php b/boca-1.5.0/src/libchart/classes/Color.php deleted file mode 100644 index 178435b..0000000 --- a/boca-1.5.0/src/libchart/classes/Color.php +++ /dev/null @@ -1,74 +0,0 @@ -red = (int)$red; - $this->green = (int)$green; - $this->blue = (int)$blue; - $this->alpha = (int)round($alpha * 127.0 / 255); - - $this->gdColor = null; - } - - /** - * Get GD color - * - * @access public - * @param $img GD image resource - */ - - function getColor($img) - { - // Checks if color has already been allocated - - if(!$this->gdColor) - { - if($this->alpha == 0 || !function_exists('imagecolorallocatealpha')) - $this->gdColor = imagecolorallocate($img, $this->red, $this->green, $this->blue); - else - $this->gdColor = imagecolorallocatealpha($img, $this->red, $this->green, $this->blue, $this->alpha); - } - - // Returns GD color - - return $this->gdColor; - } - } -?> -- cgit v1.2.3