Potřeboval jsem pro jednu naši aplikaci paletu málo podobných barev. Dlouho jsem hledal, až jsem na jedné stránce našel tabulku barev Excelu.
Převedl jsem ji do Javy a nabízím vám ji k dispozici.
Tabulka základních barev Excelu:
// Excel colors
final static Color COLOR_TABLE[] = {
new Color(0x99,0x99,0xFF),
new Color(0x99,0x33,0x66),
new Color(0xFF,0xFF,0xCC),
new Color(0xCC,0xFF,0xFF),
new Color(0x66,0x00,0x66),
new Color(0xFF,0x80,0x80),
new Color(0x00,0x66,0xCC),
new Color(0xCC,0xCC,0xFF),
new Color(0x00,0x00,0x80),
new Color(0xFF,0x00,0xFF),
new Color(0xFF,0xFF,0x00),
new Color(0x00,0xFF,0xFF),
new Color(0x80,0x00,0x80),
new Color(0x80,0x00,0x00),
new Color(0x00,0x80,0x80),
new Color(0x00,0x00,0xFF),
new Color(0x00,0xCC,0xFF),
new Color(0xCC,0xFF,0xFF),
new Color(0xCC,0xFF,0xCC),
new Color(0xFF,0xFF,0x99),
new Color(0x99,0xCC,0xFF),
new Color(0xFF,0x99,0xCC),
new Color(0xCC,0x99,0xFF),
new Color(0xFF,0xCC,0x99),
new Color(0x33,0x66,0xFF),
new Color(0x33,0xCC,0xCC),
new Color(0x99,0xCC,0x00),
new Color(0xFF,0xCC,0x00),
new Color(0xFF,0x99,0x00),
new Color(0xFF,0x66,0x00),
new Color(0x66,0x66,0x99),
new Color(0x96,0x96,0x96),
new Color(0x00,0x33,0x66),
new Color(0x33,0x99,0x66),
new Color(0x00,0x33,0x00),
new Color(0x33,0x33,0x00),
new Color(0x99,0x33,0x00),
new Color(0x99,0x33,0x66),
new Color(0x33,0x33,0x99),
new Color(0x33,0x33,0x33),
new Color(0xFF,0x00,0x00),
new Color(0x00,0xFF,0x00),
new Color(0x00,0x00,0xFF),
new Color(0xFF,0xFF,0x00),
new Color(0xFF,0x00,0xFF),
new Color(0x00,0xFF,0xFF),
new Color(0x80,0x00,0x00),
new Color(0x00,0x80,0x00),
new Color(0x00,0x00,0x80),
new Color(0x80,0x80,0x00),
new Color(0x80,0x00,0x80),
new Color(0x00,0x80,0x80),
new Color(0xC0,0xC0,0xC0),
new Color(0x80,0x80,0x80)
};
O jaké barvy se jedná vidíte na následujím screenshotu: