/** * Draws this object onto an image * * @param img.Image image * @return var */ public function draw($image) { $this->col = $this->colors[1]; $cy = $this->cy; for ($i = 1; $i < $this->shadow; $i++) { $this->cy = $cy + $i; parent::draw($image); } $this->cy = $cy; $this->col = $this->colors[0]; parent::draw($image); }