At 12:36 AM -0400 6/29/2004, Simon Lord wrote:
How can I turn 0,0,0 into #00 or 255,255,255 into #FF?
Anyone have the secret for converting rgb to webcolors?
Web colors are just 3 base-16 numbers, one for each item of the RGB
numeric color:
put # into theWebColor -- leading #
repeat
Hello,
Anyone have the secret for
converting rgb to webcolors?
It must be in the air ... i have just tackled this
problem myself in the context of creating a WYSIWYG
DHTML editor with MetaCard. :)
Jeanne's solution, below, is the BEST one. It is how
it SHOULD be done. It's what baseConvert
How can I turn 0,0,0 into #00 or 255,255,255 into #FF? Anyone
have the secret for converting rgb to webcolors?
Sincerely,
Simon
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard
PROTECTED] Behalf Of Simon Lord
Sent: Tuesday, 29 June 2004 2:07 PM
To: MetaCard
Subject: HTML Colors
How can I turn 0,0,0 into #00 or 255,255,255 into #FF? Anyone
have the secret for converting rgb to webcolors?
Sincerely,
Simon
___
metacard