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

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

- Function: svgObject
- Usage:
    `svgObject(mycircle,myoptions)`
- Inputs:
  - mycircle, an instance of the type Circle,
  - myoptions, a hash table, giving values to some options (see defaultSVGOptions).
- Outputs:
  - a string, containing the description of the circle in SVG

## 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(circle(point(20,30),10),myoptions)

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

## Ways to use this method:

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

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Graphics.m2:1456:0.