xfpoly
fill a polygon
Syntax
xfpoly(xv,yv,[fill]) h = xfpoly(...)
Arguments
- xv,yv
two vectors of same size (the points of the polygon).
- fill
integer, the color used to fill the polygon.
- h
This optional output contains a handle to the created Polyline entity. For a list of properties, see polyline_properties.
Description
xfpoly
fills a polygon with the current color or a color specified by the
optional fill
argument.
If fill
is omitted, the polygon is filled with the current color and its contour is
drawn with the current color and line style.
If fill
is present, it is used to fill the polygon as follows:
if fill<0
, the polygon is filled with the color-fill
, and its contour is not drawn.if fill=0
, the polygon is filled with the current color and its contour is drawn with the current color and line style (equivalent tofill
omitted).if fill>0
, the polygon is filled with the colorfill
and its contour is drawn with the current color and line style.
Examples
See also
History
Version | Description |
2025.0.0 | Function returns the created handle(s). |
Report an issue | ||
<< polyline properties | polygon | xfpolys >> |