Example #1
0
 protected function drawBoundary(GraphicsContext $gc, $points, $drawType, $shift = 0)
 {
     $x = array();
     $y = array();
     foreach ($points as $point) {
         $x[] = $point[0];
         $y[] = $point[1];
     }
     $x[0] = $x[0] - $shift;
     $index = count($y) - 1;
     $y[$index] = $y[$index] + $shift;
     $gc->drawPolygon($x, $y, $drawType);
 }