TOMÁŠ HUBÁLEK BLOG: BAVTE SE PŘIMĚŘENĚ…

Potřebujete pěknou paletu málo opakujících se barev?

Written By: Tomáš Hubálek - Oct• 13•04

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:

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

Your email address will not be published. Required fields are marked *