delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/08:10:21

Message-Id: <3.0.16.19971013140431.22af0b9e@hem1.passagen.se>
Date: Mon, 13 Oct 1997 14:07:32 -0400
To: djgpp AT delorie DOT com
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Palette Question (using Allegro)
Mime-Version: 1.0

How would one go about to create a system where one could always specify an
RGB color no matter what video-mode one is in? Well, an obvious answer to
this is to use the allegro "makecol()" function, but what should one set
the palette to in that case?

And if I want to load several pictures, how would I get the palette's
optimized? Or should I just use the makecol() function for that too, since
that is the easiest way? It sounds like a bad idea though. 

How does ex. Netscape (or any other browser) work in Windows 256 color
modes? I know it diethers the pictures, but what does it do to the palette
really? Does it just have a "universal" palette all the time, which it
doesn't change? In that case where could I find information on dithering?
(Or does Allegro have any function(s) to do this?


-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

*****************************************************
* A brief description of DJGPP:                     *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************

- Raw text -


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