next | previous | forward | backward | up | top | index | toc | Macaulay2 website
VectorGraphics :: Path

Path -- An SVG path

Description

An SVG path. It follows the syntax of SVG paths, except successive commands must be grouped together in a list called PathList.

i1 : Path{PathList => {"M", (0, 25), "Q", (25, 25), (25, 0), "M", (50, 25), "Q", (25, 25), (25, 50)},
         "stroke"=>"black","fill"=>"transparent","stroke-width"=>5}

o1 = Path{cache => CacheTable{}                                                   }
          fill => transparent
          PathList => {M, |  0 |, Q, | 25 |, | 25 |, M, | 50 |, Q, | 25 |, | 25 |}
                          | 25 |     | 25 |  |  0 |     | 25 |     | 25 |  | 50 |
                          |  0 |     |  0 |  |  0 |     |  0 |     |  0 |  |  0 |
                          |  1 |     |  1 |  |  1 |     |  1 |     |  1 |  |  1 |
          stroke => black
          stroke-width => 5

o1 : Path

For the programmer

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