cvs: pear /Image_Color Color.php
| From: | Daniel Allen | Date: | Sat, 18 May 2002 10:52:13 +0000 |
| Subject: | cvs: pear /Image_Color Color.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3920@lists.php.net to get a copy of this message | ||
dallen Sat May 18 06:52:13 2002 EDT
Modified files:
/pear/Image_Color Color.php
Log:
- getRange is still wrong, now it just returns the start and end color as well as between...
figured you can cut off the first and last if you don't want them
Index: pear/Image_Color/Color.php
diff -u pear/Image_Color/Color.php:1.3 pear/Image_Color/Color.php:1.4
--- pear/Image_Color/Color.php:1.3 Sat May 18 06:49:53 2002
+++ pear/Image_Color/Color.php Sat May 18 06:52:12 2002
@@ -16,7 +16,7 @@
// | Ulf Wendel <ulf.wendel@phpdoc.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Color.php,v 1.3 2002/05/18 10:49:53 dallen Exp $
+// $Id: Color.php,v 1.4 2002/05/18 10:52:12 dallen Exp $
/**
* Color
@@ -329,7 +329,7 @@
*/
// Loop through all the degrees between the colors
- for ( $x = 1; $x < $degrees; $x++ )
+ for ( $x = 0; $x <= $degrees; $x++ )
{
$col[0] = $red_steps * $x;
$col[1] = $green_steps * $x;