Beispiel #1
0
// 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...)
}
Beispiel #2
0
// 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])
	}
}