delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/26/13:00:22

From: "DeHackEd" <dehacked72 AT nospam DOT hotmail DOT com>
References: <34A32CDB DOT 767B AT nic DOT smsu DOT edu>
Subject: Re: Why does Allegro use bright pink for transparency?
Date: Fri, 26 Dec 1997 08:48:06 -0500
Lines: 20
Message-ID: <OX1tdRgE9GA.205@upnetnews04>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Tony O'Bryan wrote in message <34A32CDB DOT 767B AT nic DOT smsu DOT edu>...
>In 8-bit color modes, Allegro uses the customary color 0 for pixel
>transparency with sprites.  Why do the high-color and true-color modes
>use bright pink instead of black (0,0,0)?

It's a matter if what colours are likely to be used. Pictures these days have
more and more black in them. DOOM used the colour cyan (r=0, g=255, b=255) for
transparency.

If you don't like this, edit allegro.h in the allegro directory, change the
definitions, and rebuild the library using:

C:\DJGPP\ALLEGRO>make install

I did change my pictures because I don't have a quality editor and changing all
my artwork background from white to pink was going to be long and annoying...
makecol16(255, 255, 255);


- Raw text -


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