Created
June 18, 2013 20:44
-
-
Save rebolek/5809176 to your computer and use it in GitHub Desktop.
Timer example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REBOL[] | |
n: now/time/precise | |
i: 0 | |
view [ | |
b: button "test" on-init [ | |
do-actor/style face 'on-init arg 'button | |
set-timer/repeat [ | |
++ i | |
if (now/time/precise - n) >= 0:0:1 [ | |
set-face b i | |
show-now b | |
set 'i 0 | |
set 'n now/time/precise | |
] | |
] 0 | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment