Initializing help system before first use

svgaddrectangle

svgaddrectangle


Purpose
Add a rectangle to an object group.
Synopsis
procedure svgaddrectangle(gid: string, x: real, y: real, w: real, h: real)
Arguments
gid 
Object group ID.
The x coordinate of the lower left corner.
The y coordinate of the lower left corner.
The width of the rectangle.
The height of the rectangle.
Example
The following code draws a rectangle filled with the group color covering an area 10 units long and 1 unit high starting at the origin.
svgaddrectangle(0,0,10,1)
svgsetstyle(svggetlastobj, SVG_FILL, SVG_CURRENT
Further information
If no group ID is specified, the rectangle is added to the last group that has been created.