This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
x/examples/blank/main.go

19 lines
362 B
Go
Raw Permalink Normal View History

2024-05-26 13:33:06 -06:00
package main
import "image"
import "git.tebibyte.media/tomo/x"
import "git.tebibyte.media/tomo/tomo"
func main () {
tomo.Register(0, x.NewBackend)
err := tomo.Run(run)
if err != nil { panic(err) }
}
func run () {
window, err := tomo.NewWindow(image.Rect(0, 0, 200, 300))
if err != nil { panic(err) }
window.OnClose(tomo.Stop)
window.SetVisible(true)
}