oColor = color(#rgb, 0,0,0)
put oColor.hexstring()
-- "#000000"
oColor2 = color(#rgb, 255,255,255)
put oColor2.hexString()
-- "#FFFFFF"
put oColor.hexString() > oColor2.hexString()
-- 0
put oColor.hexString() < oColor2.hexString()
-- 1


Don't know if you would want to work this way. A color of rgb(0,255,255), full brightness cyan, may seem to be closer to black than rgb(1,0,0), almost completely black, would be.

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to