delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/21/07:40:54

Message-Id: <3.0.16.19971021133718.36cf2982@hem1.passagen.se>
Date: Tue, 21 Oct 1997 13:38:11 -0400
To: djgpp AT delorie DOT com
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Colors in a consistent way.
Mime-Version: 1.0

I'm sorry if this message is off topic, but this is the only mailing list I
subscribe to and I don't have news access, so this is the only place I came
up with to ask programmers about this problem:

In a GUI, or another program that will work in multiple graphic modes, how
should one handle colors in a consistent way? In 15, 16, 24, 32 bit modes
this is no real problem, all you need to do is use a function like
allegro's makecol() which will return a proper color value. 

But how should one handle the palette in 256 color modes? If one for
example wants the user to be able to load several pictures, and they all
should look good. One would then have to dither the pictures, but to what
palette? Should one stick to a standard palette all the time, or should one
change it dynamically?

How does ex. browsers in windows 256 color mode do this? I.e. does Netscape
have a consistent palette or does it change? (I have a list of 220 or so
colors that Netscape and internet explorer doesn't dither, so I suppose
those colors are always there, but what about the rest?)


-- 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