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

arrow -- A marker to add to paths

Description

Must be used as styling options "marker-start", "marker-mid" or "marker-end", to add an arrow to a path.

i1 : Polyline{Points=>{(0,0),(50,50),(0,100),(50,150)},"stroke"=>"yellow","stroke-width"=>5,"marker-end"=>arrow("fill"=>"orange"),Margin=>0.3}

o1 = Polyline{cache => CacheTable{}                      }
              Margin => .3
              marker-end => url(#Graphics_1622160071_1)
              Points => {| 0 |, | 50 |, |  0  |, |  50 |}
                         | 0 |  | 50 |  | 100 |  | 150 |
                         | 0 |  |  0 |  |  0  |  |  0  |
                         | 1 |  |  1 |  |  1  |  |  1  |
              stroke => yellow
              stroke-width => 5

o1 : Polyline

For the programmer

The object arrow is a function closure.