From 7ed10a4fc3c95244d347aa313f0d334aab962f80 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 25 Feb 2026 18:22:31 -0500 Subject: update examples to use new Env interface --- examples/paint/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/paint/main.go') diff --git a/examples/paint/main.go b/examples/paint/main.go index fec06c3..7aa0179 100644 --- a/examples/paint/main.go +++ b/examples/paint/main.go @@ -26,7 +26,7 @@ func ColorPicker(env gui.Env, pick chan<- color.Color, r image.Rectangle, clr co } } - close(env.Draw()) + env.Close() } func Canvas(env gui.Env, pick <-chan color.Color, r image.Rectangle) { @@ -51,7 +51,7 @@ func Canvas(env gui.Env, pick <-chan color.Color, r image.Rectangle) { case event, ok := <-env.Events(): if !ok { - close(env.Draw()) + env.Close() return } @@ -118,7 +118,7 @@ func run() { for event := range env.Events() { switch event.(type) { case win.WiClose: - close(env.Draw()) + env.Close() } } } -- cgit v1.2.3