ellipse()

Produces a SVG "ellipse" element.

Syntax

ellipse(
   cx DECIMAL,
   cy DECIMAL,
   rx DECIMAL,
   ry DECIMAL )
  RETURNS om.DomNode
  1. cx defines the X coordinate of the center of the ellipse.
  2. cy defines the Y coordinate of the center of the ellipse.
  3. rx defines the X radius of the ellipse.
  4. ry defines the Y radius of the ellipse.

Usage

This function creates an "ellipse" SVG DOM element from the parameters.

Example

DEFINE n om.DomNode
LET n = fglsvgcanvas.ellipse(100,100,50,60)
CALL n.setAttribute(SVGATT_STYLE,"stroke:#006600;")