diff options
| author | Clement Benard <contact@clementbenard.com> | 2019-07-15 16:19:19 +0200 |
|---|---|---|
| committer | Clement Benard <contact@clementbenard.com> | 2019-07-15 16:19:19 +0200 |
| commit | 8b70878ccc7fe324f3647e56503a37f3780f9d41 (patch) | |
| tree | d2279e13b6da93e7a47e7b792c02b014fddd561d /examples | |
| parent | 736e35bd9b0c8f4f9649557e4b7a3085b4bdbe63 (diff) | |
| download | gui-8b70878ccc7fe324f3647e56503a37f3780f9d41.zip | |
now working
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/layout/blinker.go | 7 | ||||
| -rwxr-xr-x | examples/layout/layout | bin | 0 -> 5564792 bytes | |||
| -rw-r--r-- | examples/layout/main.go | 2 |
3 files changed, 3 insertions, 6 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) } diff --git a/examples/layout/layout b/examples/layout/layout Binary files differnew file mode 100755 index 0000000..0d51021 --- /dev/null +++ b/examples/layout/layout diff --git a/examples/layout/main.go b/examples/layout/main.go index c0055ee..c672e63 100644 --- a/examples/layout/main.go +++ b/examples/layout/main.go @@ -97,7 +97,7 @@ func run() { go Blinker(b1) go Blinker(b2) box := layout.Box{ - Length: 4, + Length: 3, Vertical: true, Gap: 4, Background: colornames.Pink, |