You are here: Re: Hex Color Codes - Hex 6 <=> Hex 3 « HTML « IT news, forums, messages
Re: Hex Color Codes - Hex 6 <=> Hex 3

Posted by Neredbojias on 10/02/67 11:24

With neither quill nor qualm, Steve Pugh quothed:

> Neredbojias wrote:
> > With neither quill nor qualm, Kevin Scholl quothed:
> >
> > > > Or should I simply use basic rounding to change Hex6 to Hex3 (ie
> > > > #A1B7C9 becomes #ABD).
> > >
> > > Actually, #9BC would be closer.
> >
> > How do you figure that?
>
> ABD = AABBDD
> 9BC = 99BBCC
>
> A1 = 161, AA = 170, 99 = 153
> hence A1 is closer to 99 than AA
>
> C9 = 201, DD = 221, CC = 204
> hence C9 is closer to CC than DD
>
> So #9BC would be the closest Hex3 version of #A1B7C9
>
> Steve

Duh, yeah, I do that all the time. #abd is *not* #a0b0d0, it's #aabbdd.
I will write that in a complete sentence 500 times on notebook paper as
soon as I disconnect.

--
Neredbojias
Contrary to popular belief, it is believable.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация