delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/02:50:50

Date: Tue, 21 Jan 1997 09:35:10 -0600 (CST)
From: Adrian Oboroc <ash AT cinf DOT usm DOT md>
To: sieben AT imap1 DOT asu DOT edu
cc: djgpp AT delorie DOT com
Subject: About Allegro's palettes
Message-ID: <Pine.LNX.3.93.970121093413.6000N-100000@cinf.usm.md>
MIME-Version: 1.0

sieben AT imap1 DOT asu DOT edu wrote:

> Has anybody created a good palette for allegro. I noticed that the desktop
> palette contains the same 16 colors at all the 256 places.
>
> An even better solution would be an algorithm to choose rgb values if I
> need n colors as distinguishable as possible.
>
> Thanks,
> Nandor.

Hello, friend! I don't think that palette is a big piece of art =) , but
if you can't create one with your code, you could make it in some drawing
software like Deluxe Paint II Enhanced - press 'P' for palette functions,
here you can manualy make each color by setting its Red Green and Blue
components, or use Gradient function to get series of smooth changed colors.
After you'll master your palette, save it with the image to PCX file and
use Grabber to get this palette in your personal data file. Also you can
cut last 768 bytes from PCX file, shift each byte with two bits to left
(ie divide them by 4), and convert them info C array - it will be your
palette.

BTW: If you are Allegro user, you should use word "PALLETE" instead of
"PALETTE", or you might be misundersuded by other Allegro users =)
Also, if you don't have DP2e, you can try to do the same with another
gfx editor, or wait until I'll release Pixel - my freeware DP2e clone.

                                        Signed: AsH / DEVOTiON

- Raw text -


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