Re: [AD] A silly question

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> The 15-bit white (1f,1f,1f)  is equivalent to RGB(3e,3e,3e) if the low bit
> is cleared.

Yes.

> 3f,3f,3c is the closest to this in your palette.

Are you sure ?

> The create_rgb_table should be modified to assume the low bit is set when
> making the comparison.

I'll test.

The comments for the function say:
" Uses alg. similar to floodfill - it adds one seed per every color in
  palette to its best position. Then areas around seed are filled by
  same color because it is best approximation for them, and then areas
  about them etc..."

I thought one could expect a floodfill algorithm to preserve the islets of
exact matching between RGB triplets and indexes.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/