RGB colours

Richard Gaskin ambassador at fourthworld.com
Wed Dec 19 10:00:52 EST 2007


Sarah Reichelt wrote:
 > Here is a function I gleaned from the list a long time ago.
 >
 > function translateColorName pColorName
 >    lock screen
 >    lock messages
 >    create btn "ColorTest"
 >    put it into tButtonID
 >    set the backcolor of tButtonID to pColorName
 >    get the effective backpixel of tButtonID
 >    set the backcolor of tButtonID to empty
 >    set the backpixel of tButtonID to it
 >    put the backcolor of tButtonID into tRGB
 >    delete tButtonID
 >    return tRGB
 > end translateColorName

Do you know of a way in which that might be modified to use the 
templateButton rather than a physical button?

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list