Palette entry
From Wikipedia, the free encyclopedia
| This article does not cite any references or sources. (February 2008) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
| It has been suggested that this article or section be merged into Indexed color. (Discuss) |
Palette entry is the term to denote a color in the palette of a digital image represented in the indexed color space. Below is an example of the beginning of a palette ("color table" as sometimes called), which shows that a palette entry is composed of a pair of "cells": one cell from the column of indices and another from the column of colors.
| Index | Color |
|---|---|
| 0 | Forest Green |
| 1 | Steel Blue |
| 2 | Medium Purple |
| 3 | Slate Gray |
| ... | ... |
The bordered position is the palette entry that associates the index 2 with the color Medium Purple.
In order to save memory, a set of palette entries usually is stored as an array of colors rather than as a table in the form illustrated. This way every color gets the unique index accordingly to its position in the array.

