protected function setPixel($gd, $x, $y, $ar) { list($r, $g, $b) = $this->color->getRgb(); $c = imagecolorallocatealpha($gd, $r, $g, $b, 127 * $ar); imagesetpixel($gd, $x, $y, $c); }