1. Colors?

Yeah, with this mailing list, we feel like we aren't alone, but, this is
my doubt: with the routine mask_image (thanks to Mike Fowler!) I can mask a
color of background of my sprite, but this routine can do it with 256
colors mode? In a image that has 256 colors? (this is to you Mike...)
 Awaiting answer...

Eduardo Uemura Okada
cool at art.com.br

new topic     » topic index » view message » categorize

2. Colors?

Eduardo Uemura Okada wrote:

->  Yeah, with this mailing list, we feel like we aren't alone, but,
-> this is
-> my doubt: with the routine mask_image (thanks to Mike Fowler!) I can
-> mask a color of background of my sprite, but this routine can do it
-> with 256 colors mode? In a image that has 256 colors? (this is to you
-> Mike...)  Awaiting answer...

righto...

masked_image is just display_image, but instead of printihg the image
line-by-line, it checks each pixel to se if its the colour that you want
to mask. If it is, it moves the draw position 1 pixel to the right
WITHOUT drawing a pixel, so that peice is left clear.

so, i figure, if display_image can do it, masked_image can do it (but
its alot slower because it has to scan each pixel, then either draw it
or move on)

hope that answered your question :)

Mike Fowler - mike.fowler at nelsun.gen.nz
  o__ ---
 _,>/'_ ---
(_) \(_) ---
Tip for the month: Buy a Pentium II - they reboot faster.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu