Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: rgb color selector error (/data = none) Re:(2)

From: g:santilli:tiscalinet:it at: 3-Aug-2000 19:06

Hello [RChristiansen--pop--isdfa--sei-it--com]! On 02-Ago-00, you wrote: R> Making this change only made the slider /data value change R> from 0 to 1 when I move the slider and the /data value doesn't R> return to 0. Yup, sorry, I was too tired yesterday. :-) If you don't want to check for none then you may want to try my slider style. Otherwise: rgb: frame 50x50 [ rgb/color: to-tuple reduce [ any [red/data 1] - 1 any [green/data 1] - 1 any [blue/data 1] - 1 ] show rgb ] assuming /data goes from 1 to 256 (so you can solve your problem with black being 1.1.1). Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/