For RGB codes do you mean 3 comma-separated byte values, converted to 6 hex digits ?

If so, you would use something like

put "123,55,255" into aRBG
put format("%02x%02x%02x", item 1 of aRGB, item 2 of aRGB, item 3 of aRGB) into aHex

-- Alex.

On 05/02/2011 18:12, David C. wrote:
Cool link! Thanks for sharing that. :)

That brings a question to mind though... what is the simple way of
converting RGB codes to their hex equivalents? I think I used to know
that, but am likely having a senior moment. ;-)

Best regards,
David C.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to