Syntax
svgPie( nSvg, nCx, nCy, nR, nStartAngle, nEndAngle, [cColor] ) --> NILArguments
nSvg
Drawing handle returned by svgInit().
nCx
Horizontal coordinate of the center.
nCy
Vertical coordinate of the center.
nR
Circle radius in SVG units.
nStartAngle
Start angle in degrees. 0 points right and 90 points down.
nEndAngle
End angle in degrees. The sweep is the end angle minus the start angle.
cColor
Optional SVG stroke color. Omit it or pass NIL to use the pen color.
Return value
NIL.
Description
The outline uses the current pen and is centered on the boundary. cColor changes only the color of this outline and does not change the pen. It follows a radius from the center to the start point, follows the arc, then closes back to the center. A positive sweep goes clockwise and a negative sweep goes counterclockwise. A sweep of 360 degrees or more in either direction draws a circle outline.
Example
PROCEDURE Main()
LOCAL nSvg := svgInit( "pie.svg", 200, 200 )
IF nSvg == 0
RETURN
ENDIF
svgPen( nSvg, 4, "black", .T. )
svgPie( nSvg, 100, 100, 75, -90, 45, "#264D73" )
svgClose( nSvg )
RETURNOutput