1. Palette operations

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/

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu