Exemple #1
0
// 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)
	}
}
Exemple #2
0
// 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)
	}
}