Scilab Function

xfpoly - fill a polygon

### Calling Sequence

  `xfpoly(xv,yv,[close])`

### Parameters

- `xv,yv` : two vectors of same size (the points of the polygon).
- `close` : integer. If close=1, the polyline is closed; default value is 0.

### Description

`xfpoly` fills a polygon with the current color. If `close` is equal to 1 a point is added to the polyline `xv,yv` to define a polygon.

### Examples

    x=sin(2*%pi*(0:5)/5);
    y=cos(2*%pi*(0:5)/5);
    plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
    xset("color",5)
    xfpoly(x,y)
    xset("default")

### See Also

`xfpolys` , `xpoly` , `xpolys` ,

### Author

J.Ph.C.