Re: Is it possible to take that ugly border out ?
- Posted by Ricardo Niederberger Cabral <rnc at INFOLINK.COM.BR> Sep 23, 1996
- 1128 views
>palette index 17 which is palette color 16 is the border culprit. >Quick fix is >-------------------------- >--color = 16 >--palette[color + 1] = {0, 0, 0} >palette[17] = {0, 0, 0} >all_palette(palette / 4) >-------------------------- >What should be done is. >--------------------------- >Remap all references to 16 in the image to an unused palette color >then copy palette[16+1] to palette[unused_color + 1]. >palette[unused+1] = palette[17] >After that, set palette[16+1] to black {0, 0, 0} >palette[17] = {0, 0, 0} >--------------------------- The problem is that almost all the images in my program use the palette entry 16 (17 in an Euphoria sequence) so when I set palette[17] to {0,0,0}, these images are displayed incorrectly. (All the images in my program have the same palette, where index 16 is red). How can I fix this problem without having to change the index 16 to black and reassigning this global palette to all the images ? More exactly: Is there a fast way to change all references to color 17 to an unused color ? --- Ricardo Niederberger Cabral Command & Conquer World: Files, Links, Tactics, News ... http://www.geocities.com/TimesSquare/1210