Re: Correction To Converting Colors
by "Ted Temer" <temer(at)c-zone.net>
|
Date: |
Thu, 1 Feb 2001 17:43:52 -0800 |
To: |
"HWGBASICS" <hwg-basics(at)hwg.org> |
References: |
hotmail |
|
todo: View
Thread,
Original
|
|
Susan:
Wow !!!
As Barry Fitzgerald said in that great morning-after scene in "The Quiet
Man", - - -Formidable!!
Even a "math major" like myself can't help but feel both greatly impressed
and just a tiny bit intimidated.
So--for those not at home with numbers, I feel I should respectively point
out that there are at least a half-dozen Color Picker programs available for
free download that will do the math for you.
Some, like the one I downloaded from the Netscape site a year or so ago,
will give values for most color systems "on the fly". You can "copy" a
color--using numbers or the "picker" and convert to your hearts content.
Then you can just plug in the values in your favorite graphics program.
But Please !! -- I don't mean to downplay Susan's formula. It's a very
complete and credible effort on a serious, complex subject.
Best wishes
Ted Temer
Temercraft Designs Redding, CA
temer(at)c-zone.net
www.temercraft.com/novels/
www.newsredding.com/
www.ramac-rc.org/
> Just wanted to publish a correction to a recent post I had done on using
> Photoshop to remove white lines (pixels) around an image. In my example
of
> taking a number from Dreamweaver and trying to convert it to RGB in
> Photoshop, I mistakenly thought you could take the pairs of numbers and
> divide it into the RGB columns. Short of an alien abduction, I have no
good
> reason for this logic.
>
> However, a kind reader caught my error and sent it to me privately. After
> receiving his permission, I am sharing it with the list in case there are
> other people who may not know how to convert colors and may not even
realize
> that they don't know. See below.
>
> Regards,
> Susan V.
>
> (TO CONVERT COLORS INTO RGB)
>
>
> First, some quick basics: The 0-9 HEX (BASE16) digits are the same value
> as the 0-9 DECIMAL (BASE10) digits, and the A-F HEX digits are the same as
> the 10-15 DECIMAL numbers. After "0F" HEX comes "10" HEX.
>
> DECIMAL: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... 31 32
> HEX : 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 ... 1F 20
>
> In DECIMAL (the number "18" represents 1 ten and 8 ones, or 10+8=18, which
> you are famliar with. The HEX number "12" represents (in DECIMAL) 1
> sixteen and 2 ones, or 16+2=18. You just did your first conversion.
> Here are the place equivalents (both are given in DECIMAL values):
>
> For the number 1234
> /// |
> // | |
> // | |
> / | | |
> / | | |
> DECIMAL: 1000 100 10 1 (each place muliplied by 10)( 1234=1234)
> HEX : 4096 256 16 1 (each place multplied by 16)(#1234=4660)
> (1x4096)+(2x256)+(3x16)+(4x1)=4660
> (4096)+(512)+(48)+(4)=4660
>
> You just did your second conversion, with a larger HEX number than you'll
> probably realistically work with. "FF" HEX is probably the largest you'll
> use.
> And now for the conversions of "#CC9966" and "#FF":
>
> CC=(12x16)+(12x1) 99=(9x16)+(9x1) 66=(6x16)+(6x1) FF=(15x16)+(15x1)
> =(192)+(12) =(144)+(9) =(96)+(6) =(240)+(15)
> =204 =153 =102 =255
>
> Now that you know the "pattern" all the "mystery and magic" are gone....
>
>
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA