delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/17:25:37

Message-ID: <xCGvECAwhXH1EwC+@talula.demon.co.uk>
Date: Sat, 28 Mar 1998 22:23:44 +0000
To: Nate Eldredge <eldredge AT ap DOT net>
Cc: djgpp AT delorie DOT com
From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Subject: Re: transparent Color
In-Reply-To: <199803281841.KAA16614@adit.ap.net>
MIME-Version: 1.0

Nate Eldredge <eldredge AT ap DOT net> writes:
>>>Could you define "bright pink" a little bit (no pun intended) better? 
>
>Perhaps you ought to explain that it's (max blue, max red, 0 green)?

Do you think this wording is any better?

    void draw_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y);
       Draws a copy of the sprite bitmap onto the destination bitmap at 
       the specified position. This is almost the same as blit(sprite, 
       bmp, 0, 0, x, y, sprite->w, sprite->h), but it uses a masked 
       drawing mode where transparent pixels are skipped, so the 
       background image will show through the masked parts of the 
       sprite. Transparent pixels are marked by a zero in 256 color 
       modes or bright pink for truecolor data (maximum red and blue, 
       zero green).


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


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