[REBOL] Re: Blinking LEDs
From: allenk:powerup:au at: 25-Jun-2001 21:39
You can provide your own led colors, this example will flash on and off
view layout [l1: led blue yellow 0:00:00.20]
view layout [l1: led blue yellow button "Change" [l1/data: not l1/data]
show l1]
There are a couple of scripts on my reb that play with led style.
led chooses its color from face/colors based on whether the led is on or
off.
view layout [
myled: led
button "press me" [
myled/colors/2: 0.255.0
print myled/color
show myled
print myled/color
]
]
Cheers,
Allen K