コード例 #1
0
ファイル: openvg.go プロジェクト: xranby/openvg
// Rect draws a rectangle at (x,y) with dimensions (w,h)
func Rect(x, y, w, h float64, style ...string) {
	C.Rect(C.VGfloat(x), C.VGfloat(y), C.VGfloat(w), C.VGfloat(h))
}
コード例 #2
0
ファイル: openvg.go プロジェクト: jhautefeuille/openvg
// Rect draws a rectangle at (x,y) with dimesions (w,h)
func Rect(x, y, w, h VGfloat) {
	C.Rect(C.VGfloat(x), C.VGfloat(y), C.VGfloat(w), C.VGfloat(h))
}