コード例 #1
0
ファイル: openvg.go プロジェクト: xranby/openvg
// Startcolor begins the picture with the specified color background
func StartColor(w, h int, color string, alpha ...float64) {
	C.Start(C.int(w), C.int(h))
	BackgroundColor(color, alpha...)
}
コード例 #2
0
ファイル: openvg.go プロジェクト: xranby/openvg
// Start begins a picture
func Start(w, h int, color ...uint8) {
	C.Start(C.int(w), C.int(h))
	if len(color) == 3 {
		Background(color[0], color[1], color[2])
	}
}