//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() }
//Used to manually draw the screen. func Draw() { p.Draw() }