// Polygon draws a polygon using coordinates in x,y func Polygon(x, y []float64, style ...string) { px, py, np := poly(x, y) if np > 0 { C.Polygon(px, py, np) } }
// Polygon draws a polygon with coordinate in x,y func Polygon(x, y []VGfloat) { px, py, np := poly(x, y) if np > 0 { C.Polygon(px, py, np) } }