1. Palette operations
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Jun 12, 1997
- 618 views
I need a way to generate an optimal palette from an image where each pixel is a {red,green,blue} sequence. I've seen graphics programs that do this with JPEG images in order to display them in a 256 color graphics mode. I need to know how to do this in Euphoria. Also, what is the fastest way to search a palette for the closest color to a {red,green,blue} sequence, other than finding the distance for each color and using the one with the smallest? Is there a way to do this using look-up tables or comparison trees? Pete Eberlein <xseal at harborside.com> http://www.harborside.com/home/x/xseal/