Re: Palette problem
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> May 21, 1999
- 454 views
Tor writes: > When I display it in Neil, the colors are not quite correct. > The entire palette seems to be just slightly different from > what they look like in PSP. Some of the green colors are > for example twisted to an ugly yellowish hue. right, because the load_bitmap function is remapping your palette colors to the standard palette. You have use_bitmap_colors() in your program, but it must be called *before* load_bitmap, so that load_bitmap knows to set the image palette and use that palette from then on. > My code looks like this (simplified): corrected: include neil.e sequence map if gfx_mode(640, 480, 8) then end if use_bitmap_palette() map = load_bitmap("bigmap.bmp") map = map[1]&{0,0}&map[2..3] Later, _______ ______ _______ ______ [ _ \[ _ ][ _ _ ][ _ ] [/| [_] |[/| [_\][/ | | \][/| [_\] | ___/ | _] | | | _] [\| [/] [\| [_/] [\| |/] [\| [_/] [_____] [______] [_____] [______] xseal at harborside.com ICQ:13466657 http://www.harborside.com/home/x/xseal/euphoria/