Message-ID: Date: Sat, 28 Mar 1998 22:23:44 +0000 To: Nate Eldredge Cc: djgpp AT delorie DOT com From: Shawn Hargreaves Subject: Re: transparent Color In-Reply-To: <199803281841.KAA16614@adit.ap.net> MIME-Version: 1.0 Precedence: bulk Nate Eldredge 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