HTML Color Codes

H Baric hbaric at gmail.com
Wed Aug 6 11:17:36 EDT 2008


Last one before I jump into bed and thaw out after sitting at a computer for hours... 

I was wondering how to translate the RGB names to the HTML equivalent when user selects color with the Color Dialog. For such use as with a html page generator.

If it doesn't exist already (though surely it's been done before, and I just can't find it): am I on the right track thinking that an array would be used to hold both code sets, then a function returns the html equivalent rather than the RGB? Or something!

Though I know hardly anything about arrays, never used them - only very vaguely know what they are and what they do. Kind of.

As I'm off to bed, I'll read up on them, then doze off to the sound of a script typewriter clacking in my Rev-Brainwashed noggin. :D

Tia and Goodnight til Oz morn!

Cheers,
Heather




More information about the use-livecode mailing list