delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/04/22:09:50

Message-ID: <389B6DF7.1D9E63E0@itsmyparty.com.au>
Date: Sat, 05 Feb 2000 11:25:27 +1100
From: Mark Mendes da Costa <mark AT itsmyparty DOT com DOT au>
Organization: It's My Party
X-Mailer: Mozilla 4.61 [en]C-AAPTINET (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Changing transparent color in 256 mode?
References: <s9moo2f4dh97 AT corp DOT supernews DOT com>
NNTP-Posting-Host: a4-p13.syd.fl.net.au
X-Trace: 5 Feb 2000 11:28:08 +1100, a4-p13.syd.fl.net.au
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Why don't you change another colour to black using the palette routines? Then
colour 0 stays transparent and you can use another colour as black.
In the default VGA palette, isn't colour 16 black aswell?

~Alex

"William J. Urban II" wrote:

> Hello all,
>     Well I am working on the standard tile based learn how to use Allegro
> stuff and I was wondering if there is any way to change the transparent
> color from black to something else.  Black is pretty useful for drawing the
> "ink" lines in characters to give them more depth but then when I
> draw_sprite, it puts the background color instead.  I looked for something
> in the palette information but I couldnt find anything on it.  I also tried
> using a dark blue and it worked but gave the characters a blue tint to them.
> Any ideas?  Thanks in advance.
>
> -Will

- Raw text -


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