svgaddcircle
svgaddcircle |
Purpose
Synopsis
procedure svgaddcircle(gid: string, x: real, y: real, r: real)
procedure svgaddcircle(x: real, y: real, r: real)
Arguments
gid
|
Object group ID.
|
x
|
The x coordinate of the center point.
|
y
|
The y coordinate of the center point.
|
r
|
The length of the radius of the circle.
|
Example
The following code draws a filled, semi-transparent circle centered at the origin with a radius of 10.
declarations circ: integer end-declarations svgaddcircle(0, 0, 10) circ:=svggetlastobj svgsetstyle(circ, SVG_FILL, SVG_CYAN) svgsetstyle(circ, SVG_OPACITY, 0.5)
Further information
If no group ID is specified, the circle is added to the last group that has been created.