What is the palette?

Started by
2 comments, last by Link 21 years, 2 months ago
Can you explain me what is and how i can use i it is need?
Advertisement
depends on what type of palette you are refering to. If it''s in the 256 color mode sense, then a palette is just an array of colors that the 8-bit image indexes into to form an image. If you are talking about skinned animation, then a palette is a set of matrices vertices index into to transform into world space (when combined with other matrices)

I assume you mean the 8-bit sense, so I''ll go into more detail.

on older video cards memory was very limited and they processing was slow. this meant that you could get speed improvements by storing images with only 8 bits per pixel. but what color does that 8-bit number represent? that comes from the palette. it stores usually 256 colors, and the pixel value indexes into it. so you images will be small in memory consumption, and copying them is therefore faster. plus you can do some cool tricks with palette animation.
Yes, but why do i use palettes?
You probably won''t now. Palettes are relativly low quality considering that many formats now support 256 to the power of 4 colors (including alpha that is).

This topic is closed to new replies.

Advertisement