From: krand AT terraport DOT net (Andrew Ellem) Newsgroups: comp.os.msdos.djgpp Subject: Drawing in diffrent colours in Allegro Date: Fri, 03 Jan 97 23:32:27 GMT Organization: Internex Online (io.org), Toronto, Ontario, Canada Lines: 8 Message-ID: <5ak513$680@news1.io.org> Reply-To: krand AT terraport DOT net NNTP-Posting-Host: ppp-069.toronto-02.ican.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'd like some help on how to draw the same sprite in diffrent colours using Allegro. I would like to draw a sprite, changing all bytes x to y. Something like this : draw_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int c1, int c2); Where every c1 in the sprite would be changed to c2, in addition to ignoring the 0's.