g.polyline([points])
Return a new polyline object with points given by the points
array. If points
are not provided or are not an Array, an empty Polyline is created. The array can hold anything that can be understood by the Point constructor; Point objects, objects with x
and y
attributes, or strings in one of the two valid formats ("x y"
or "x@y"
). Array elements that cannot be understood as Points are replaced by 0,0 points.