4 * @link http://github.com/PhenX/php-svg-lib
5 * @author Fabien Ménager <fabien.menager@gmail.com>
6 * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
11 class Polyline
extends Shape
13 public function start($attributes)
16 preg_match_all('/([\-]*[0-9\.]+)/', $attributes['points'], $tmp);
19 $count = count($points);
21 $surface = $this->document
->getSurface();
22 list($x, $y) = $points;
23 $surface->moveTo($x, $y);
25 for ($i = 2; $i < $count; $i +
= 2) {
28 $surface->lineTo($x, $y);