示例#1
0
文件: openvg.go 项目: xranby/openvg
// Line draws a line between two points
func Line(x1, y1, x2, y2 float64, style ...string) {
	C.Line(C.VGfloat(x1), C.VGfloat(y1), C.VGfloat(x2), C.VGfloat(y2))
}
示例#2
0
// Line draws a line between two points
func Line(x1, y1, x2, y2 VGfloat) {
	C.Line(C.VGfloat(x1), C.VGfloat(y1), C.VGfloat(x2), C.VGfloat(y2))
}