POLYGON
|
Syntax: |
POLYGON(<Coordinates>,<Red>,<Green>,<Blue>,<Fill>,<Line
Width>[,<Handle>])
|
||||||||||||||
|
|
|
||||||||||||||
|
Meaning: |
Draws a polygon on the screen. If <Red> < 0 or <Green> < 0
or <Blue> < 0, a polygon of the same size previously drawn at the
same position is deleted again. <Handle> specifies the window in that
the polygon shall be drawn. <Handle> can contain the window depth or
the handle of a split window or a WINDOWCALL
window. If the parameter <Handle> is missing, the polygon is drawn on
the current mask. POLYGON returns the following values: 1: no error -1: Polygon to be deleted not found -2: The coordinates do not have the form Y,X -3: <Coordinates> is empty Attention:
In Html programs 1 is returned when NOREPAINT is
active. |
||||||||||||||
|
Parameter: |
|
||||||||||||||
|
Sample: |
/* Draw a filled red
triangle with the coordinates: /* (5,10) (5,12.5) (3.5,11.25) H% = POLYGON("5,10;5,12.5;3.5,11.25",255,0,0,1,2) |
||||||||||||||
|
See also: |
|