delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/06:35:48

Message-Id: <199908111648.MAA27528@delorie.com>
From: "Dan Gold" <TedMat AT CoastNet DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: color pallete for 256 bits
Date: Sun, 13 Jan 1980 15:10:58 -0800
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I think you mean 256 bytes, and what you are doing when you use outport is
changing the rgb values held in the color loop-up table. Since an 8 bit
color is limited to 256 different values but not 256 different colors, and
a pixel on the screen is an index to the color-look up table which is made
of 3  6bit values defining the individual 0-63 rgb values. So you can
change each of these values to any combination from 0-0-0 to 63-63-63, by
changing the values on the vga through the ports you to can change the
colors but never have more than 256. inport would take the value from the
rgb look up table...

I hope that didn't sound confusing, I think I structured my explanation
bad...

From Dan Gold...

----------
> From: zidharta AT yahoo DOT com
> To: djgpp AT delorie DOT com
> Subject: color pallete for 256 bits
> Date: Tuesday, August 10, 1999 2:59 AM
> 
> when we use color pallete technique in 13h graphics mode ...
> (where we set RGB using outport or inport )
> are we really get more colors?... it still 256 bits anyway isnt it?
> so why are we using it? ...
> 
> heap thanks
> 
> Sid
> 
> 
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019