Warum zum Teufel wird das gesamt Image mit der Farbe, die ich in meinem Array stehen habe, gezeichnet?
Any idea?! Danke
PHP-Code:
$temp = 0;
for ($piece = 0; $piece < count($this->data); $piece++) {
$start = $temp;
$end = $this->data[$piece]['Winkel'];
$red = substr($this->data[$piece]['Farbe'],0,2);
$green = substr($this->data[$piece]['Farbe'],2,2);
$blue = substr($this->data[$piece]['Farbe'],4,2);
$c = imagecolorallocate($this->handle, "0x".$red, "0x".$green, "0x".$blue);
imagefilledarc($this->handle, $centerX, $y, $radiusX, $radiusY, $start, $end, $c, IMG_ARC_PIE);
$temp = $end;
}
Kommentar