Macaulay2 » Documentation
Packages » VectorGraphics :: Polyline
next | previous | forward | backward | up | index | toc

Polyline -- An SVG sequence of lines

Description

An SVG sequence of lines. The coordinates must form a list called PointList. (the difference with Polygon is that the last coordinate is not reconnected to the first)

i1 : Polyline{PointList=>{[0,10],[100,10],[90,90],[0,80]},"stroke"=>"red","fill"=>"white"}

o1 = Polyline{cache => CacheTable{}                         }
              PointList => {|  0 |, | 100 |, | 90 |, |  0 |}
                            | 10 |  |  10 |  | 90 |  | 80 |
                            |  0 |  |  0  |  |  0 |  |  0 |
                            |  1 |  |  1  |  |  1 |  |  1 |
              style => MutableHashTable{...2...}

o1 : Polyline

For the programmer

The object Polyline is an instance of the type GraphicsType, with ancestor classes GraphicsPoly < GraphicsObject < GraphicsAncestor < HashTable < Thing.