Purpose
Draw a polygon on a canvas.
Synopsis
procedure XADcanvasdrawpolygon(id:integer, xs:array of real, ys:array of real, color1:integer, color2:integer)
Arguments
|
id
|
Canvas identifier
|
|
xs
|
Array of x coordinates
|
|
ys
|
Array of y coordinates
|
|
color1
|
Border color
|
|
color2
|
Fill color
|
Example
declarations
POINTS=1..3
xs,ys:array(POINTS) of real
end-declarations
xs:=[50, 100, 30]
ys:=[50, 200, 80]
...
XADcanvasdrawpolygon(id_canvas,xs,ys,XAD_RED,XAD_BLACK)
Further information
Draws a
using x and y
coordinates taken from the
xs and
ys arrays.
xs and
ys must be indexed by the same index set. See example.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.