SVG

svgFilledEllipse()

Draw a filled ellipse

Syntax

Signature
svgFilledEllipse( nSvg, nCx, nCy, nRx, nRy, cColor ) --> NIL

Arguments

nSvg

Drawing handle returned by svgInit().

nCx

Horizontal coordinate of the center.

nCy

Vertical coordinate of the center.

nRx

Horizontal radius in SVG units.

nRy

Vertical radius in SVG units.

cColor

SVG fill color, such as "#264D73" or "currentColor".

Return value

NIL.

Description

Fills the ellipse with the supplied color.

Example

svgFilledEllipse.prg
PROCEDURE Main()

   LOCAL nSvg := svgInit( "filled-ellipse.svg", 240, 160 )

   IF nSvg == 0
      RETURN
   ENDIF

   svgFilledEllipse( nSvg, 120, 80, 90, 50, "#264D73" )
   svgClose( nSvg )

RETURN

Output

See also