cvs: pear /Image_Color Color.php
| From: | Jason Lotito | Date: | Mon, 08 Apr 2002 14:05:16 +0000 |
| Subject: | cvs: pear /Image_Color Color.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3142@lists.php.net to get a copy of this message | ||
jasonlotito Mon Apr 8 10:05:16 2002 EDT
Modified files:
/pear/Image_Color Color.php
Log:
Minor fix.
Index: pear/Image_Color/Color.php
diff -u pear/Image_Color/Color.php:1.1 pear/Image_Color/Color.php:1.2
--- pear/Image_Color/Color.php:1.1 Mon Apr 8 06:48:16 2002
+++ pear/Image_Color/Color.php Mon Apr 8 10:05:15 2002
@@ -16,7 +16,7 @@
// | Ulf Wendel <ulf.wendel@phpdoc.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Color.php,v 1.1 2002/04/08 10:48:16 sebastian Exp $
+// $Id: Color.php,v 1.2 2002/04/08 14:05:15 jasonlotito Exp $
/**
* Color
@@ -315,11 +315,11 @@
*/
// RED
- $red_steps = ( $this->color2[0] - $this->color[0] ) / $degrees;
+ $red_steps = ( $this->color2[0] - $this->color1[0] ) / $degrees;
// GREEN
- $green_steps = ( $this->color2[1] - $this->color[1] ) / $degrees;
+ $green_steps = ( $this->color2[1] - $this->color1[1] ) / $degrees;
// BLUE
- $blue_steps = ( $this->color2[2] - $this->color[2] ) / $degrees;
+ $blue_steps = ( $this->color2[2] - $this->color1[2] ) / $degrees;
$allcolors = array();
$x = 0;
@@ -338,7 +338,7 @@
// Loop through each R, G, and B
for ( $i = 0; $i < 3; $i++ )
{
- $partcolor = $color1[$i] + $col[$i];
+ $partcolor = $this->color1[$i] + $col[$i];
// If the color is less than 256
if ( $partcolor < 256 )
{