circle()

Produces an SVG "circle" element.

Syntax

circle(
   cx DECIMAL,
   cy DECIMAL,
   r DECIMAL )
  RETURNS om.DomNode
  1. cx defines the X coordinate of the center point of the circle.
  2. cy defines the Y coordinate of the center point of the circle.
  3. r defines the radius of the circle.

Usage

This function creates a "circle" SVG DOM element from the parameters.

Example

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