This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/examples/drawing/main.go

23 lines
434 B
Go
Raw Permalink Normal View History

2023-01-20 23:05:48 +00:00
package main
2023-05-03 23:40:30 +00:00
import "tomo"
import "tomo/nasin"
import "tomo/elements/testing"
2023-03-09 01:41:48 +00:00
import "git.tebibyte.media/sashakoshka/ezprof/ez"
2023-01-20 23:05:48 +00:00
func main () {
2023-05-03 02:19:29 +00:00
nasin.Run(Application { })
2023-01-20 23:05:48 +00:00
}
2023-05-03 02:19:29 +00:00
type Application struct { }
func (Application) Init () error {
window, err := nasin.NewWindow(tomo.Bounds(0, 0, 480, 360))
if err != nil { return err }
2023-01-20 23:05:48 +00:00
window.Adopt(testing.NewArtist())
2023-05-03 02:19:29 +00:00
window.OnClose(nasin.Stop)
2023-03-09 02:05:56 +00:00
window.Show()
2023-03-09 01:41:48 +00:00
ez.Prof()
2023-05-03 02:19:29 +00:00
return nil
2023-01-20 23:05:48 +00:00
}