Esempio n. 1
0
//Blocks until CloseDisplay is called, regardless of whether or not OpenDisplay has been called.
func Main() {
	go func() {
		for running {
			p.Draw()
			time.Sleep(time.Duration(drawInterval))
		}
	}()
	p.HandleEvents()
}
Esempio n. 2
0
//Used to manually draw the screen.
func Draw() {
	p.Draw()
}