Message-ID: <3B2C0FEE.670D5EE7@mailandnews.com> From: "J. Weeks" X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: So lemme get this straight References: <3B26A50C DOT B926BE12 AT home DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 31 Date: Sat, 16 Jun 2001 22:03:26 -0400 NNTP-Posting-Host: 209.239.1.149 X-Trace: nnrp1.uunet.ca 992743272 209.239.1.149 (Sat, 16 Jun 2001 22:01:12 EDT) NNTP-Posting-Date: Sat, 16 Jun 2001 22:01:12 EDT Organization: UUNET Canada News Reader Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com PM wrote: > > Ok so when talking about colour considerations when programming in the > different colour depths, is this right? > > When programming in 256 colour or 8 bit mode, a palette is used, which > is an 256 elemented array of the RGB structure. Correct? > The palette is used to manipulate colour. > > When programming in high colour or true colour, what is used to > manipulate colour here? is an array of 16 million RGB Structures used? In 24-bit mode, the 24-bit value you place in video memory contains the intensities of red, green and blue in it. 8:8:8 <- # of bits R:G:B <- what they represent In 16-bit mode I believe it's 5:6:5, R:G:B. 32-bit mode is the same as 24-bit mode, but supposedly also contains an Alpha byte. 8:8:8:8 R:G:B:A I say supposedly, because I think some cards just ignore the 4th byte. Still nice to use, though, even if the 4th byte doesn't work... a lot easier to format :) j.weeks