Closed bboe closed 12 years ago
Are you sure (on line 41) that it shouldn't be full = 255
rather than full = 2**depth - 1
? The returned color values have to be in the range 0-255, you see. (I can't seem to get any suitable images to test this with...)
Oh maybe you are right. I was thinking the depth of each color was lessened with smaller depths not just the number of colors. I will update tomorrow.
Edit: I'll also hard code in all the values in the tuples since it it seems they are constant.
Added #6 to address the issue you mentioned.
Integrated my colormap changes into your existing changes. Verified the thumbnails are correct with a number that I tested.