aboutsummaryrefslogtreecommitdiffstats
path: root/examples/layout/blinker.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/layout/blinker.go')
-rw-r--r--examples/layout/blinker.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/layout/blinker.go b/examples/layout/blinker.go
index b096a73..8c380c3 100644
--- a/examples/layout/blinker.go
+++ b/examples/layout/blinker.go
@@ -40,11 +40,8 @@ func Blinker(env gui.Env) {
case win.MoDown:
if event.Point.In(r) {
go func() {
- for i := 0; i < 3; i++ {
- visible = false
- env.Draw() <- redraw()
- time.Sleep(time.Second / 3)
- visible = true
+ for i := 0; i < 6; i++ {
+ visible = !visible
env.Draw() <- redraw()
time.Sleep(time.Second / 3)
}