Macaulay2 » Documentation
Packages » Graphics :: svgObject(Polygon2D,HashTable)
next | previous | forward | backward | up | index | toc

svgObject(Polygon2D,HashTable) -- create the string describing a circle in SVG

Synopsis

Description

The options that are not given in myoptions are set at the default values contained in defaultSVGOptions.

i1 : myoptions = hashTable {"fill"=>"black"}

o1 = HashTable{"fill" => black}

o1 : HashTable
i2 : svgObject(polygon({point(20,30),point(40,50),point(10,40)}),myoptions)

o2 = <polygon points="20,30 40,50 10,40 " stroke="black" fill-opacity="1"
     stroke-width="1" fill="black" stroke-opacity="1" />

Ways to use this method: