note 44194 added to function.imagefilledarc
| From: | hans at lintoo dot dk | Date: | Sat, 17 Jul 2004 16:14:18 +0000 |
| Subject: | note 44194 added to function.imagefilledarc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73450@lists.php.net to get a copy of this message | ||
I found some bugs in my script.. and therefore I am posting the fixes:
Bugs:
<?php
$drakcolor[2] = imagecolorallocate($im, 139, 0, 1);
//Should be
$darkcolor[2] = imagecolorallocate($im, 139, 0, 1);
?>
And then if you modify the code a little and, then make a image 200x125 then you won't be
wasting space.
Changes:
<?php
$im = imagecreate (200, 125);
// AND
for ($i = 60; $i > 50; $i--) {
imagefilledarc($im, 100, $i, 200, 100, $anglesum[$f], $anglesum[$n], $darkcolor[$f], IMG_ARC_PIE);
}
// AND
imagefilledarc($im, 100, 50, 200, 100, $anglesum[$n], $anglesum[$i], $randcolor[$n],
IMG_ARC_PIE);
?>
you can see a online demo at: http://webstatistik.lintoo.dk/
----
Manual Page -- http://www.php.net/manual/en/function.imagefilledarc.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44194
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44194&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44194&report=yes
Search -- http://master.php.net/manage/user-notes.php