~whereswaldon/trideo

a579677597e2c4178b089f7a4ab28f790c8ee8e6 — Chris Waldon 3 years ago 39b9b0e
feat: window defaults

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 4 insertions(+), 4 deletions(-)

M main.go
M main.go => main.go +4 -4
@@ 35,7 35,7 @@ func main() {
	var useProfiling bool
	flag.BoolVar(&useProfiling, "profile", false, "enable pprof profiling")
	go func() {
		w := app.NewWindow()
		w := app.NewWindow(app.Title("Trideo"))
		if err := loop(w, useProfiling); err != nil {
			log.Fatal(err)
		}


@@ 138,7 138,7 @@ func loop(w *app.Window, useProfiling bool) error {
	}

	var ops op.Ops
	tickerDuration := time.Second / 15
	tickerDuration := time.Second / 10
	ticker := time.NewTicker(tickerDuration)
	var init bool
	var d triangle.Delaunay


@@ 249,8 249,8 @@ func Dp(in int) unit.Value {
// visual inspection.
func DebugWindow(result DebugResult) {
	width := result.Raw.Rect.Dx() * 4
	height := result.Raw.Rect.Dy() * 4
	w := app.NewWindow(app.Title("Debug"), app.Size(Dp(width), Dp(height*5)))
	height := result.Raw.Rect.Dy() * 8
	w := app.NewWindow(app.Title("Debug"), app.MinSize(Dp(width), Dp(height)))
	var ops op.Ops
	var list layout.List
	list.Axis = layout.Vertical