Initializing help system before first use

svgaddpolygon

Purpose
Add a polygon to an object group.
Synopsis
procedure svgaddpolygon(gid: string, points: list of integer|real)
procedure svgaddpolygon(points: list of integer|real)
Arguments
gid 
Object group ID.
points 
A list of points.
Example
The following code draws two semi-transparent, partially overlapping polygons, the first is filled with the group color, the second with a different color:
svgaddgroup("p", "Polygons")
svgsetstyle(SVG_OPACITY, 0.5)
svgsetstyle(SVG_FILL, SVG_CURRENT)
svgaddpolygon([-2, -2, 0, 2, 2, -2)])
svgaddpolygon([-1, -2, 1, 2, 3, -2)])
svgsetstyle(svggetlastobj, SVG_FILL, SVG_GREY)
Further information
1. The last point in the list of points is automatically connected to the first point in the list to form a closed shape.
2. If no group ID is specified, the polygon is added to the last group that has been created.
Related topics

© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.