delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/09/10:44:08

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>, "Ansawddex" <ansawddex AT aol DOT com>
Subject: RE: Truecolour transparent sprites question.
Date: Sun, 9 Aug 1998 15:44:20 +0100
Message-ID: <000201bdc3a4$315be200$7a4d08c3@arthur>
MIME-Version: 1.0
In-Reply-To: <1998080913125600.JAA17206@ladder03.news.aol.com>
Importance: Normal

> How do I set up a sprite with some transparent sections? In truecolour modes
> it apparently has to be bright pink but what are the right RGB values for
> truecolour transparency?

It's basically as high red and blue vaules as you can get, with green at 0. So in
32-bit it's (0xFF,0x00,0xFF). In Allegro you can use the makecol commands to convert
between RGB values between colour formats.

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819

- Raw text -


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