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

svgObject(FormattedGraphicPrimitives) -- create a string describing in SVG a list of formatted graphic primitive object

Synopsis

Description

The options that are not given in the hash table part of fgp are set at the default values contained in defaultSVGOptions.

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

o1 = HashTable{"fill" => black}

o1 : HashTable
i2 : myfgp= formatGraphicPrimitives({point(20,30)},myoptions)

o2 = FormattedGraphicPrimitives{{Point2D{20, 30}}, HashTable{"fill" => black}}

o2 : FormattedGraphicPrimitives
i3 : svgObject(myfgp)

o3 = <circle cx="20" cy="30" r="2" stroke="black" fill-opacity="1"
     stroke-width="0" fill="black" stroke-opacity="1" />

Ways to use this method: