Created
October 17, 2010 03:46
-
-
Save anonymous/630517 to your computer and use it in GitHub Desktop.
big enum for colors (processing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
class: Color | |
type: enum | |
description: Encapsulates an abstract color. Contains a large list | |
of different colors which can be accessed like: | |
Color.Russet | |
*/ | |
enum Color { | |
////////// color list (taken from http://en.wikipedia.org/wiki/List_of_colors on 10/16/10) ///////////////////////////////////// | |
AirForceBlue (0x5D, 0x8a, 0xa8), | |
AliceBlue (0xF0, 0xF8, 0xFF), | |
Alizarin (0xef, 0x26, 0x36), | |
Almond (0xef, 0xde, 0xcd), | |
Amaranth (0xE5, 0x2B, 0x50), | |
Amber (0xFF, 0xBF, 0x00), | |
DarkAmber (0xFF, 0x7E, 0x00), | |
AmericanRose (0xFF, 0x03, 0x3E), | |
Amethyst (0x99, 0x66, 0xCC), | |
AntiflashWhite (0xF2, 0xF3, 0xF4), | |
AntiqueBrass (0xCD, 0x95, 0x75), | |
AntiqueFuchsia (0x91, 0x5C, 0x83), | |
AntiqueWhite (0xFA, 0xEB, 0xD7), | |
Ao (0x00, 0x00, 0xFF), | |
AoEnglish (0x00, 0x80, 0x00), | |
AppleGreen (0x8D, 0xB6, 0x00), | |
Apricot (0xFB, 0xCE, 0xB1), | |
Aqua (0x00, 0xFF, 0xFF), | |
Aquamarine (0x7F, 0xFF, 0xD0), | |
ArmyGreen (0x4B, 0x53, 0x20), | |
Arsenic (0x3B, 0x44, 0x4B), | |
ArylideYellow (0xE9, 0xD6, 0x6B), | |
AshGrey (0xB2, 0xBE, 0xB5), | |
Asparagus (0x87, 0xA9, 0x6B), | |
AtomicTangerine (0xFF, 0x99, 0x66), | |
Auburn (0x6D, 0x35, 0x1A), | |
Aureolin (0xFD, 0xEE, 0x00), | |
Aurometalsaurus (0x6E, 0x7F, 0x80), | |
Awesome (0xFF, 0x20, 0x52), | |
Azure (0x00, 0x7F, 0xFF), | |
AzureMist (0xF0, 0xFF, 0xFF), | |
Blue (0x00, 0x00, 0xFF), | |
Black (0x00, 0x00, 0x00), | |
BabyBlue (0x89, 0xCF, 0xF0), | |
BabyBlueEyes (0xA1, 0xCA, 0xF1), | |
BabyPink (0xF4, 0xC2, 0xC2), | |
BallBlue (0x21, 0xAB, 0xCD), | |
BananaMania (0xFA, 0xE7, 0xB5), | |
BattleshipGrey (0x84, 0x84, 0x82), | |
Bazaar (0x98, 0x77, 0x7B), | |
BeauBlue (0xBC, 0xD4, 0xE6), | |
Beaver (0x9F, 0x81, 0x70), | |
Beige (0xF5, 0xF5, 0xDC), | |
Bistre (0x3D, 0x2B, 0x1F), | |
Bittersweet (0xFE, 0x6F, 0x5E), | |
BlanchedAlmond (0xFF, 0xEB, 0xCD), | |
BleuDeFrance (0x31, 0x8C, 0xE7), | |
BlizzardBlue (0xAC, 0xE5, 0xEE), | |
Blond (0xFA, 0xF0, 0xBE), | |
BluePigment (0x33, 0x33, 0x99), | |
// Blue (0x02, 0x47, 0xFE), | |
BlueBell (0xA2, 0xA2, 0xD0), | |
BlueGray (0x66, 0x99, 0xCC), | |
BlueGreen (0x00, 0xDD, 0xDD), | |
BlueViolet (0x8A, 0x2B, 0xE2), | |
Blush (0xDE, 0x5D, 0x83), | |
Bole (0x79, 0x44, 0x3B), | |
BondiBlue (0x00, 0x95, 0xB6), | |
BostonUniversityRed (0xCC, 0x00, 0x00), | |
BrandeisBlue (0x00, 0x70, 0xFF), | |
Brass (0xB5, 0xA6, 0x42), | |
BrickRed (0xCB, 0x41, 0x54), | |
BrightCerulean (0x1D, 0xAC, 0xD6), | |
BrightGreen (0x66, 0xFF, 0x00), | |
BrightLavender (0xBF, 0x94, 0xE4), | |
BrightMaroon (0xC3, 0x21, 0x48), | |
BrightPink (0xFF, 0x00, 0x7F), | |
BrightTurquoise (0x08, 0xE8, 0xDE), | |
BrightUbe (0xD1, 0x9F, 0xE8), | |
BrilliantLavender (0xF4, 0xBB, 0xFF), | |
BrilliantRose (0xFF, 0x55, 0xA3), | |
BrinkPink (0xFB, 0x60, 0x7F), | |
BritishRacingGreen (0x00, 0x42, 0x25), | |
Bronze (0xCD, 0x7F, 0x32), | |
BrownPigment (0x96, 0x4B, 0x00), | |
BrownWeb (0xA5, 0x2A, 0x2A), | |
BubbleGum (0xFF, 0xC1, 0xCC), | |
Bubbles (0xE7, 0xFE, 0xFF), | |
Buff (0xF0, 0xDC, 0x82), | |
BulgarianRose (0x48, 0x06, 0x07), | |
Burgundy (0x80, 0x00, 0x20), | |
Burlywood (0xDE, 0xB8, 0x87), | |
BurntOrange (0xCC, 0x55, 0x00), | |
BurntSienna (0xE9, 0x74, 0x51), | |
BurntUmber (0x8A, 0x33, 0x24), | |
Byzantine (0xBD, 0x33, 0xA4), | |
Byzantium (0x70, 0x29, 0x63), | |
Cadet (0x53, 0x68, 0x72), | |
CadetBlue (0x5F, 0x9E, 0xA0), | |
CadetGrey (0x91, 0xA3, 0xB0), | |
CadmiumGreen (0x00, 0x6B, 0x3C), | |
CadmiumOrange (0xED, 0x87, 0x2D), | |
CadmiumRed (0xE3, 0x00, 0x22), | |
CadmiumYellow (0xFF, 0xF6, 0x00), | |
CalPolyPomonaGreen (0x1E, 0x4D, 0x2B), | |
CambridgeBlue (0xA3, 0xC1, 0xAD), | |
Camel (0xC1, 0x9A, 0x6B), | |
CamouflageGreen (0x78, 0x86, 0x6B), | |
CanaryYellow (0xFF, 0xEF, 0x00), | |
CandyAppleRed (0xFF, 0x08, 0x00), | |
CandyPink (0xE4, 0x71, 0x7A), | |
Capri (0x00, 0xBF, 0xFF), | |
CaputMortuum (0x59, 0x27, 0x20), | |
Cardinal (0xC4, 0x1E, 0x3A), | |
CaribbeanGreen (0x00, 0xCC, 0x99), | |
Carmine (0x96, 0x00, 0x18), | |
CarminePink (0xEB, 0x4C, 0x42), | |
CarmineRed (0xFF, 0x00, 0x38), | |
CarnationPink (0xFF, 0xA6, 0xC9), | |
Carnelian (0xB3, 0x1B, 0x1B), | |
CarolinaBlue (0x99, 0xBA, 0xDD), | |
CarrotOrange (0xED, 0x91, 0x21), | |
Ceil (0x92, 0xA1, 0xCF), | |
Celadon (0xAC, 0xE1, 0xAF), | |
CelestialBlue (0x49, 0x97, 0xD0), | |
Cerise (0xDE, 0x31, 0x63), | |
CerisePink (0xEC, 0x3B, 0x83), | |
Cerulean (0x00, 0x7B, 0xA7), | |
CeruleanBlue (0x2A, 0x52, 0xBE), | |
Chamoisee (0xA0, 0x78, 0x5A), | |
Champagne (0xF7, 0xE7, 0xCE), | |
Charcoal (0x36, 0x45, 0x4F), | |
Chartreuse (0xDF, 0xFF, 0x00), | |
ChartreuseWeb (0x7F, 0xFF, 0x00), | |
CherryBlossomPink (0xFF, 0xB7, 0xC5), | |
Chestnut (0xCD, 0x5C, 0x5C), | |
Chocolate (0x7B, 0x3F, 0x00), | |
ChromeYellow (0xFF, 0xA7, 0x00), | |
Cinereous (0x98, 0x81, 0x7B), | |
Cinnabar (0xE3, 0x42, 0x34), | |
Cinnamon (0xD2, 0x69, 0x1E), | |
Citrine (0xE4, 0xD0, 0x0A), | |
ClassicRose (0xFB, 0xCC, 0xE7), | |
Cobalt (0x00, 0x47, 0xAB), | |
ColumbiaBlue (0x9B, 0xDD, 0xFF), | |
CoolBlack (0x00, 0x2E, 0x63), | |
CoolGrey (0x8C, 0x92, 0xAC), | |
Copper (0xB8, 0x73, 0x33), | |
CopperRose (0x99, 0x66, 0x66), | |
Coquelicot (0xFF, 0x38, 0x00), | |
Coral (0xFF, 0x7F, 0x50), | |
CoralPink (0xF8, 0x83, 0x79), | |
CoralRed (0xFF, 0x40, 0x40), | |
Cordovan (0x89, 0x3F, 0x45), | |
Corn (0xFB, 0xEC, 0x5D), | |
CornellRed (0xB3, 0x1B, 0x1B), | |
CornflowerBlue (0x64, 0x95, 0xED), | |
Cornsilk (0xFF, 0xF8, 0xDC), | |
CosmicLatte (0xFF, 0xF8, 0xE7), | |
CottonCandy (0xFF, 0xBC, 0xD9), | |
Cream (0xFF, 0xFD, 0xD0), | |
Crimson (0xDC, 0x14, 0x3C), | |
CrimsonGlory (0xBE, 0x00, 0x32), | |
Cyan (0x00, 0xFF, 0xFF), | |
CyanWeb (0x00, 0xB7, 0xEB), | |
Daffodil (0xFF, 0xFF, 0x31), | |
Dandelion (0xF0, 0xE1, 0x30), | |
DarkBlue (0x00, 0x00, 0x8B), | |
DarkBrown (0x65, 0x43, 0x21), | |
DarkByzantium (0x5D, 0x39, 0x54), | |
DarkCandyAppleRed (0xA4, 0x00, 0x00), | |
DarkCerulean (0x08, 0x45, 0x7E), | |
DarkChampagne (0xC2, 0xB2, 0x80), | |
DarkChestnut (0x98, 0x69, 0x60), | |
DarkCoral (0xCD, 0x5B, 0x45), | |
DarkCyan (0x00, 0x8B, 0x8B), | |
DarkElectricBlue (0x53, 0x68, 0x78), | |
DarkGoldenrod (0xB8, 0x86, 0x0B), | |
DarkGreen (0x01, 0x32, 0x20), | |
DarkJungleGreen (0x1A, 0x24, 0x21), | |
DarkKhaki (0xBD, 0xB7, 0x6B), | |
DarkLava (0x48, 0x3C, 0x32), | |
DarkLavender (0x73, 0x4F, 0x96), | |
DarkMagenta (0x8B, 0x00, 0x8B), | |
DarkMidnightBlue (0x00, 0x33, 0x66), | |
DarkOliveGreen (0x55, 0x6B, 0x2F), | |
DarkOrange (0xFF, 0x8C, 0x00), | |
DarkPastelBlue (0x77, 0x9E, 0xCB), | |
DarkPastelGreen (0x03, 0xC0, 0x3C), | |
DarkPastelPurple (0x96, 0x6F, 0xD6), | |
DarkPastelRed (0xC2, 0x3B, 0x22), | |
DarkPink (0xE7, 0x54, 0x80), | |
DarkPowderBlue (0x00, 0x33, 0x99), | |
DarkRaspberry (0x87, 0x26, 0x57), | |
DarkRed (0x8B, 0x00, 0x00), | |
DarkSalmon (0xE9, 0x96, 0x7A), | |
DarkScarlet (0x56, 0x03, 0x19), | |
DarkSienna (0x3C, 0x14, 0x14), | |
DarkSlateGray (0x2F, 0x4F, 0x4F), | |
DarkSpringGreen (0x17, 0x72, 0x45), | |
DarkTan (0x91, 0x81, 0x51), | |
DarkTangerine (0xFF, 0xA8, 0x12), | |
DarkTaupe (0x48, 0x3C, 0x32), | |
DarkTerraCotta (0xCC, 0x4E, 0x5C), | |
DarkTurquoise (0x00, 0xCE, 0xD1), | |
DarkViolet (0x94, 0x00, 0xD3), | |
DartmouthGreen (0x00, 0x69, 0x3E), | |
DavysGrey (0x55, 0x55, 0x55), | |
DeepCarmine (0xA9, 0x20, 0x3E), | |
DeepCarminePink (0xEF, 0x30, 0x38), | |
DeepCarrotOrange (0xE9, 0x69, 0x2C), | |
DeepCerise (0xDA, 0x32, 0x87), | |
DeepChampagne (0xFA, 0xD6, 0xA5), | |
DeepChestnut (0xB9, 0x4E, 0x48), | |
DeepFuchsia (0xC1, 0x54, 0xC1), | |
DeepJungleGreen (0x00, 0x4B, 0x49), | |
DeepLilac (0x99, 0x55, 0xBB), | |
DeepMagenta (0xCC, 0x00, 0xCC), | |
DeepPeach (0xFF, 0xCB, 0xA4), | |
DeepPink (0xFF, 0x14, 0x93), | |
DeepSaffron (0xFF, 0x99, 0x33), | |
DeepSkyBlue (0x00, 0xBF, 0xFF), | |
Denim (0x15, 0x60, 0xBD), | |
Desert (0xC1, 0x9A, 0x6B), | |
DesertSand (0xED, 0xC9, 0xAF), | |
DimGray (0x69, 0x69, 0x69), | |
DodgerBlue (0x1E, 0x90, 0xFF), | |
DogwoodRose (0xD7, 0x18, 0x68), | |
DollarBill (0x85, 0xBB, 0x65), | |
Drab (0x96, 0x71, 0x17), | |
DukeBlue (0x00, 0x00, 0x9C), | |
EarthYellow (0xE1, 0xA9, 0x5F), | |
Ecru (0xC2, 0xB2, 0x80), | |
Eggplant (0x61, 0x40, 0x51), | |
Eggshell (0xF0, 0xEA, 0xD6), | |
EgyptianBlue (0x10, 0x34, 0xA6), | |
ElectricBlue (0x7D, 0xF9, 0xFF), | |
ElectricCrimson (0xFF, 0x00, 0x3F), | |
ElectricCyan (0x00, 0xFF, 0xFF), | |
ElectricGreen (0x00, 0xFF, 0x00), | |
ElectricIndigo (0x6F, 0x00, 0xFF), | |
ElectricLavender (0xF4, 0xBB, 0xFF), | |
ElectricLime (0xCC, 0xFF, 0x00), | |
ElectricPurple (0xBF, 0x00, 0xFF), | |
ElectricUltramarine (0x3F, 0x00, 0xFF), | |
ElectricViolet (0x8F, 0x00, 0xFF), | |
ElectricYellow (0xFF, 0xFF, 0x00), | |
Emerald (0x50, 0xC8, 0x78), | |
EtonBlue (0x96, 0xC8, 0xA2), | |
Fallow (0xC1, 0x9A, 0x6B), | |
FaluRed (0x80, 0x18, 0x18), | |
Fandango (0xB5, 0x33, 0x89), | |
FashionFuchsia (0xF4, 0x00, 0xA1), | |
Fawn (0xE5, 0xAA, 0x70), | |
Feldgrau (0x4D, 0x5D, 0x53), | |
FernGreen (0x4F, 0x79, 0x42), | |
FerrariRed (0xFF, 0x28, 0x00), | |
FieldDrab (0x6C, 0x54, 0x1E), | |
Firebrick (0xB2, 0x22, 0x22), | |
FireEngineRed (0xCE, 0x20, 0x29), | |
Flame (0xE2, 0x58, 0x22), | |
FlamingoPink (0xFC, 0x8E, 0xAC), | |
Flavescent (0xF7, 0xE9, 0x8E), | |
Flax (0xEE, 0xDC, 0x82), | |
FluorescentOrange (0xFF, 0xBF, 0x00), | |
FluorescentPink (0xFF, 0x14, 0x93), | |
FluorescentYellow (0xCC, 0xFF, 0x00), | |
Folly (0xFF, 0x00, 0x4F), | |
Foobar (0xF0, 0x0B, 0xA4), | |
ForestGreen (0x01, 0x44, 0x21), | |
ForestGreenWeb (0x22, 0x8B, 0x22), | |
FrenchBeige (0xA6, 0x7B, 0x5B), | |
FrenchBlue (0x00, 0x72, 0xBB), | |
FrenchLilac (0x86, 0x60, 0x8E), | |
FrenchRose (0xF6, 0x4A, 0x8A), | |
Fuchsia (0xFF, 0x00, 0xFF), | |
FuchsiaPink (0xFF, 0x77, 0xFF), | |
Fulvous (0xE4, 0x84, 0x00), | |
FuzzyWuzzy (0xCC, 0x66, 0x66), | |
Gainsboro (0xDC, 0xDC, 0xDC), | |
Gamboge (0xE4, 0x9B, 0x0F), | |
GhostWhite (0xF8, 0xF8, 0xFF), | |
Glaucous (0x60, 0x82, 0xB6), | |
Gold (0xD4, 0xAF, 0x37), | |
Golden (0xFF, 0xD7, 0x00), | |
GoldenBrown (0x99, 0x65, 0x15), | |
GoldenPoppy (0xFC, 0xC2, 0x00), | |
GoldenYellow (0xFF, 0xDF, 0x00), | |
Goldenrod (0xDA, 0xA5, 0x20), | |
GrannySmithApple (0xA8, 0xE4, 0xA0), | |
Gray (0x80, 0x80, 0x80), | |
GrayAsparagus (0x46, 0x59, 0x45), | |
GreenX11 (0x00, 0xFF, 0x00), | |
GreenWeb (0x00, 0x80, 0x00), | |
GreenPigment (0x00, 0xA5, 0x50), | |
Green(0x66, 0xB0, 0x32), | |
GreenYellow (0xAD, 0xFF, 0x2F), | |
Grullo (0xA9, 0x9A, 0x86), | |
GuppieGreen (0x00, 0xFF, 0x7F), | |
HalayaUbe (0x66, 0x38, 0x54), | |
HanBlue (0x44, 0x6C, 0xCF), | |
HanPurple (0x52, 0x18, 0xFA), | |
HansaYellow (0xE9, 0xD6, 0x6B), | |
Harlequin (0x3F, 0xFF, 0x00), | |
HarvardCrimson (0xC9, 0x00, 0x16), | |
HarvestGold (0xDA, 0x91, 0x00), | |
Heliotrope (0xDF, 0x73, 0xFF), | |
HollywoodCerise (0xF4, 0x00, 0xA1), | |
Honeydew (0xF0, 0xFF, 0xF0), | |
HookersGreen (0x00, 0x70, 0x00), | |
HotMagenta (0xFF, 0x1D, 0xCE), | |
HotPink (0xFF, 0x69, 0xB4), | |
HunterGreen (0x35, 0x5E, 0x3B), | |
Iceberg (0x71, 0xA6, 0xD2), | |
Icterine (0xFC, 0xF7, 0x5E), | |
Inchworm (0xB2, 0xEC, 0x5D), | |
IndiaGreen (0x13, 0x88, 0x08), | |
IndianRed (0xFF, 0x5C, 0x5C), | |
IndianYellow (0xE3, 0xA8, 0x57), | |
Indigo (0x00, 0x41, 0x6A), | |
IndigoWeb (0x4B, 0x00, 0x82), | |
InternationalKleinBlue (0x00, 0x2F, 0xA7), | |
InternationalOrange (0xFF, 0x4F, 0x00), | |
Iris (0x5A, 0x4F, 0xCF), | |
Isabelline (0xF4, 0xF0, 0xEC), | |
IslamicGreen (0x00, 0x90, 0x00), | |
Ivory (0xFF, 0xFF, 0xF0), | |
Jade (0x00, 0xA8, 0x6B), | |
Jasper (0xD7, 0x3B, 0x3E), | |
JazzberryJam (0xA5, 0x0B, 0x5E), | |
Jonquil (0xFA, 0xDA, 0x5E), | |
JuneBud (0xBD, 0xDA, 0x57), | |
JungleGreen (0x29, 0xAB, 0x87), | |
KellyGreen (0x4C, 0xBB, 0x17), | |
Khaki (0xC3, 0xB0, 0x91), | |
KhakiX11 (0xF0, 0xE6, 0x8C), | |
LaSalleGreen (0x08, 0x78, 0x30), | |
LanguidLavender (0xD6, 0xCA, 0xDD), | |
LapisLazuli (0x26, 0x61, 0x9C), | |
LaserLemon (0xFE, 0xFE, 0x22), | |
Lava (0xCF, 0x10, 0x20), | |
Lavender (0xB5, 0x7E, 0xDC), | |
LavenderWeb (0xE6, 0xE6, 0xFA), | |
LavenderBlue (0xCC, 0xCC, 0xFF), | |
LavenderBlush (0xFF, 0xF0, 0xF5), | |
LavenderGray (0xC4, 0xC3, 0xD0), | |
LavenderIndigo (0x94, 0x57, 0xEB), | |
LavenderMagenta (0xEE, 0x82, 0xEE), | |
LavenderMist (0xE6, 0xE6, 0xFA), | |
LavenderPink (0xFB, 0xAE, 0xD2), | |
LavenderPurple (0x96, 0x7B, 0xB6), | |
LavenderRose (0xFB, 0xA0, 0xE3), | |
LawnGreen (0x7C, 0xFC, 0x00), | |
Lemon (0xFF, 0xF7, 0x00), | |
LemonChiffon (0xFF, 0xFA, 0xCD), | |
LightApricot (0xFD, 0xD5, 0xB1), | |
LightBlue (0xAD, 0xD8, 0xE6), | |
LightBrown (0xB5, 0x65, 0x1D), | |
LightCarminePink (0xE6, 0x67, 0x71), | |
LightCoral (0xF0, 0x80, 0x80), | |
LightCornflowerBlue (0x93, 0xCC, 0xEA), | |
LightCyan (0xE0, 0xFF, 0xFF), | |
LightFuchsiaPink (0xF9, 0x84, 0xEF), | |
LightGoldenrodYellow (0xFA, 0xFA, 0xD2), | |
LightGray (0xD3, 0xD3, 0xD3), | |
LightKhaki (0xF0, 0xE6, 0x8C), | |
LightMauve (0xDC, 0xD0, 0xFF), | |
LightPastelPurple (0xB1, 0x9C, 0xD9), | |
LightPink (0xFF, 0xB6, 0xC1), | |
LightSalmon (0xFF, 0xA0, 0x7A), | |
LightSalmonPink (0xFF, 0x99, 0x99), | |
LightSeaGreen (0x20, 0xB2, 0xAA), | |
LightSkyBlue (0x87, 0xCE, 0xEB), | |
LightSlateGray (0x77, 0x88, 0x99), | |
LightTaupe (0xB3, 0x8B, 0x6D), | |
LightThulianPink (0xE6, 0x8F, 0xAC), | |
LightYellow (0xFF, 0xFF, 0xED), | |
Lilac (0xC8, 0xA2, 0xC8), | |
Lime (0xBF, 0xFF, 0x00), | |
LimeX11 (0x00, 0xFF, 0x00), | |
LimeGreen (0x32, 0xCD, 0x32), | |
Linen (0xFA, 0xF0, 0xE6), | |
Liver (0x53, 0x4B, 0x4F), | |
Lust (0xE6, 0x20, 0x20), | |
MacaroniAndCheese (0xFF, 0xBD, 0x88), | |
Magenta (0xFF, 0x00, 0xFF), | |
MagentaPigment (0xCA, 0x1F, 0x7B), | |
MagentaWeb (0xFF, 0x00, 0x90), | |
MagicMint (0xAA, 0xF0, 0xD1), | |
Magnolia (0xF8, 0xF4, 0xFF), | |
Mahogany (0xC0, 0x40, 0x00), | |
Maize (0xFB, 0xEC, 0x5D), | |
MajorelleBlue (0x60, 0x50, 0xDC), | |
Malachite (0x0B, 0xDA, 0x51), | |
Manatee (0x97, 0x9A, 0xAA), | |
MangoTango (0xFF, 0x82, 0x43), | |
MaroonWeb (0x80, 0x00, 0x00), | |
MaroonX11 (0xB0, 0x30, 0x60), | |
Mauve (0xE0, 0xB0, 0xFF), | |
MauveTaupe (0x91, 0x5F, 0x6D), | |
Mauvelous (0xEF, 0x98, 0xAA), | |
MayaBlue (0x73, 0xC2, 0xFB), | |
MeatBrown (0xE5, 0xB7, 0x3B), | |
MediumAquamarine (0x66, 0xDD, 0xAA), | |
MediumBlue (0x00, 0x00, 0xCD), | |
MediumCandyAppleRed (0xE2, 0x06, 0x2C), | |
MediumCarmine (0xAF, 0x40, 0x35), | |
MediumChampagne (0xF3, 0xE5, 0xAB), | |
MediumElectricBlue (0x03, 0x50, 0x96), | |
MediumJungleGreen (0x1C, 0x35, 0x2D), | |
MediumLavenderMagenta (0xDD, 0xA0, 0xDD), | |
MediumPersianBlue (0x00, 0x67, 0xA5), | |
MediumPurple (0x93, 0x70, 0xDB), | |
MediumRedViolet (0xBB, 0x33, 0x85), | |
MediumSeaGreen (0x3C, 0xB3, 0x71), | |
MediumSpringBud (0xC9, 0xDC, 0x87), | |
MediumSpringGreen (0x00, 0xFA, 0x9A), | |
MediumTaupe (0x67, 0x4C, 0x47), | |
MediumTurquoise (0x48, 0xD1, 0xCC), | |
Melon (0xFD, 0xBC, 0xB4), | |
MidnightBlue (0x19, 0x19, 0x70), | |
MidnightGreen (0x00, 0x49, 0x53), | |
MikadoYellow (0xFF, 0xC4, 0x0C), | |
Mint (0x3E, 0xB4, 0x89), | |
MintGreen (0x98, 0xFF, 0x98), | |
MistyRose (0xFF, 0xE4, 0xE1), | |
Moccasin (0xFA, 0xEB, 0xD7), | |
ModeBeige (0x96, 0x71, 0x17), | |
MoonstoneBlue (0x73, 0xA9, 0xC2), | |
MordantRed19 (0xAE, 0x0C, 0x00), | |
MossGreen (0xAD, 0xDF, 0xAD), | |
MountainMeadow (0x30, 0xBA, 0x8F), | |
MountbattenPink (0x99, 0x7A, 0x8D), | |
Mulberry (0xC5, 0x4B, 0x8C), | |
Mustard (0xFF, 0xDB, 0x58), | |
Myrtle (0x21, 0x42, 0x1E), | |
MsuGreen (0x18, 0x45, 0x3B), | |
NadeshikoPink (0xF6, 0xAD, 0xC6), | |
NapierGreen (0x2A, 0x80, 0x00), | |
NaplesYellow (0xFA, 0xDA, 0x5E), | |
NavajoWhite (0xFF, 0xDE, 0xAD), | |
NavyBlue (0x00, 0x00, 0x80), | |
NeonCarrot (0xFF, 0xA3, 0x43), | |
NeonFuchsia (0xFE, 0x59, 0xC2), | |
NeonGreen (0x33, 0xFF, 0x00), | |
NonphotoBlue (0xA4, 0xDD, 0xED), | |
Ochre (0xCC, 0x77, 0x22), | |
OfficeGreen (0x00, 0x80, 0x00), | |
OldGold (0xCF, 0xB5, 0x3B), | |
OldLace (0xFD, 0xF5, 0xE6), | |
OldLavender (0x79, 0x68, 0x78), | |
OldMauve (0x67, 0x31, 0x47), | |
OldRose (0xC0, 0x80, 0x81), | |
Olive (0x80, 0x80, 0x00), | |
Olivine (0x9A, 0xB9, 0x73), | |
Onyx (0x0F, 0x0F, 0x0F), | |
OperaMauve (0xB7, 0x84, 0xA7), | |
Orange (0xFF, 0x7F, 0x00), | |
Orangeish (0xFB, 0x99, 0x02), | |
OrangeWeb (0xFF, 0xA5, 0x00), | |
OrangePeel (0xFF, 0x9F, 0x00), | |
OrangeRed (0xFF, 0x45, 0x00), | |
Orchid (0xDA, 0x70, 0xD6), | |
OtterBrown (0x65, 0x43, 0x21), | |
OuterSpace (0x41, 0x4A, 0x4C), | |
OutrageousOrange (0xFF, 0x6E, 0x4A), | |
OxfordBlue (0x00, 0x21, 0x47), | |
OuCrimsonRed (0x99, 0x00, 0x00), | |
PalatinateBlue (0x27, 0x3B, 0xE2), | |
PalatinatePurple (0x68, 0x28, 0x60), | |
PaleAqua (0xBC, 0xD4, 0xE6), | |
PaleBlue (0xAF, 0xEE, 0xEE), | |
PaleBrown (0x98, 0x76, 0x54), | |
PaleCarmine (0xAF, 0x40, 0x35), | |
PaleCerulean (0x9B, 0xC4, 0xE2), | |
PaleChestnut (0xDD, 0xAD, 0xAF), | |
PaleCopper (0xDA, 0x8A, 0x67), | |
PaleCornflowerBlue (0xAB, 0xCD, 0xEF), | |
PaleGold (0xE6, 0xBE, 0x8A), | |
PaleGoldenrod (0xEE, 0xE8, 0xAA), | |
PaleMagenta (0xF9, 0x84, 0xE5), | |
PalePink (0xFA, 0xDA, 0xDD), | |
PalePlum (0xDD, 0xA0, 0xDD), | |
PaleRedViolet (0xDB, 0x70, 0x93), | |
PaleRobinEggBlue (0x96, 0xDE, 0xD1), | |
PaleSilver (0xC9, 0xC0, 0xBB), | |
PaleSpringBud (0xEC, 0xEB, 0xBD), | |
PaleTaupe (0xBC, 0x98, 0x7E), | |
PansyPurple (0x78, 0x18, 0x4A), | |
PapayaWhip (0xFF, 0xEF, 0xD5), | |
ParisGreen (0x50, 0xC8, 0x78), | |
PastelBlue (0xAE, 0xC6, 0xCF), | |
PastelBrown (0x83, 0x69, 0x53), | |
PastelGray (0xCF, 0xCF, 0xC4), | |
PastelGreen (0x77, 0xDD, 0x77), | |
PastelMagenta (0xF4, 0x9A, 0xC2), | |
PastelOrange (0xFF, 0xB3, 0x47), | |
PastelPink (0xFF, 0xD1, 0xDC), | |
PastelPurple (0xB3, 0x9E, 0xB5), | |
PastelRed (0xFF, 0x69, 0x61), | |
PastelViolet (0xCB, 0x99, 0xC9), | |
PastelYellow (0xFD, 0xFD, 0x96), | |
PaynesGrey (0x40, 0x40, 0x4F), | |
Peach (0xFF, 0xE5, 0xB4), | |
PeachOrange (0xFF, 0xCC, 0x99), | |
PeachPuff (0xFF, 0xDA, 0xB9), | |
PeachYellow (0xFA, 0xDF, 0xAD), | |
Pear (0xD1, 0xE2, 0x31), | |
Pearl (0xF0, 0xEA, 0xD6), | |
Peridot (0xE6, 0xE2, 0x00), | |
Periwinkle (0xCC, 0xCC, 0xFF), | |
PersianBlue (0x1C, 0x39, 0xBB), | |
PersianGreen (0x00, 0xA6, 0x93), | |
PersianIndigo (0x32, 0x12, 0x7A), | |
PersianOrange (0xD9, 0x90, 0x58), | |
PersianPink (0xF7, 0x7F, 0xBE), | |
PersianPlum (0x70, 0x1C, 0x1C), | |
PersianRed (0xCC, 0x33, 0x33), | |
PersianRose (0xFE, 0x28, 0xA2), | |
Persimmon (0xEC, 0x58, 0x00), | |
PhthaloBlue (0x00, 0x0F, 0x89), | |
PhthaloGreen (0x12, 0x35, 0x24), | |
PiggyPink (0xFD, 0xDD, 0xE6), | |
PineGreen (0x01, 0x79, 0x6F), | |
Pink (0xFF, 0xC0, 0xCB), | |
PinkOrange (0xFF, 0x99, 0x66), | |
PinkPearl (0xE7, 0xAC, 0xCF), | |
PinkSherbert (0xF7, 0x8F, 0xA7), | |
PinkWhite (0xFA, 0xFE, 0xFD), | |
Pistachio (0x93, 0xC5, 0x72), | |
Platinum (0xE5, 0xE4, 0xE2), | |
Plum (0x8E, 0x45, 0x85), | |
PlumWeb (0xDD, 0xA0, 0xDD), | |
PortlandOrange (0xFF, 0x5A, 0x36), | |
PowderBlue (0xB0, 0xE0, 0xE6), | |
PrincetonOrange (0xFF, 0x8F, 0x00), | |
Prune (0x70, 0x1C, 0x1C), | |
PrussianBlue (0x00, 0x31, 0x53), | |
PsychedelicPurple (0xDD, 0x00, 0xFF), | |
Puce (0xCC, 0x88, 0x99), | |
Pumpkin (0xFF, 0x75, 0x18), | |
Purple (0x80, 0x00, 0x80), | |
PurpleX11 (0xA0, 0x20, 0xF0), | |
PurpleHeart (0x69, 0x35, 0x9C), | |
PurpleMountainMajesty (0x96, 0x78, 0xB6), | |
PurplePizzazz (0xFE, 0x4E, 0xDA), | |
PurpleTaupe (0x50, 0x40, 0x4D), | |
RadicalRed (0xFF, 0x35, 0x5E), | |
Raspberry (0xE3, 0x0B, 0x5D), | |
RaspberryGlace (0x91, 0x5F, 0x6D), | |
RaspberryPink (0xE2, 0x50, 0x98), | |
RaspberryRose (0xB3, 0x44, 0x6C), | |
RawUmber (0x82, 0x66, 0x44), | |
RazzleDazzleRose (0xFF, 0x33, 0xCC), | |
Razzmatazz (0xE3, 0x25, 0x6B), | |
// Red (0xFF, 0x00, 0x00), | |
RedPigment (0xED, 0x1C, 0x24), | |
RedBrown (0xA5, 0x2A, 0x2A), | |
RedViolet (0xC7, 0x15, 0x85), | |
Redwood (0xAB, 0x4E, 0x52), | |
Regalia (0xE2, 0x50, 0x98), | |
RichBlack (0x00, 0x40, 0x40), | |
RichBrilliantLavender (0xF1, 0xA7, 0xFE), | |
RichCarmine (0xD7, 0x00, 0x40), | |
RichElectricBlue (0x08, 0x92, 0xD0), | |
RichLavender (0xA7, 0x6B, 0xCF), | |
RichLilac (0xB6, 0x66, 0xD2), | |
RichMaroon (0xB0, 0x30, 0x60), | |
RifleGreen (0x41, 0x48, 0x33), | |
RobinEggBlue (0x00, 0xCC, 0xCC), | |
Rose (0xFF, 0x00, 0x7F), | |
RoseBonbon (0xF9, 0x42, 0x9E), | |
RoseEbony (0x67, 0x48, 0x46), | |
RoseGold (0xB7, 0x6E, 0x79), | |
RoseMadder (0xE3, 0x26, 0x36), | |
RosePink (0xFF, 0x66, 0xCC), | |
RoseQuartz (0xAA, 0x98, 0xA9), | |
RoseTaupe (0x90, 0x5D, 0x5D), | |
RoseVale (0xAB, 0x4E, 0x52), | |
Rosewood (0x65, 0x00, 0x0B), | |
RossoCorsa (0xD4, 0x00, 0x00), | |
RosyBrown (0xBC, 0x8F, 0x8F), | |
RoyalAzure (0x00, 0x38, 0xA8), | |
RoyalBlue (0x00, 0x23, 0x66), | |
RoyalBlueWeb (0x41, 0x69, 0xE1), | |
RoyalFuchsia (0xCA, 0x2C, 0x92), | |
RoyalPurple (0x6B, 0x3F, 0xA0), | |
Ruby (0xE0, 0x11, 0x5F), | |
Ruddy (0xFF, 0x00, 0x28), | |
RuddyBrown (0xBB, 0x65, 0x28), | |
RuddyPink (0xE1, 0x8E, 0x96), | |
Rufous (0xA8, 0x1C, 0x07), | |
Russet (0x80, 0x46, 0x1B), | |
Rust (0xB7, 0x41, 0x0E), | |
SacramentoStateGreen (0x00, 0x56, 0x3F), | |
SaddleBrown (0x8B, 0x45, 0x13), | |
SafetyOrange (0xFF, 0x67, 0x00), | |
Saffron (0xF4, 0xC4, 0x30), | |
StPatricksBlue (0x23, 0x29, 0x7A), | |
Salmon (0xFF, 0x8C, 0x69), | |
SalmonPink (0xFF, 0x91, 0xA4), | |
Sand (0xC2, 0xB2, 0x80), | |
SandDune (0x96, 0x71, 0x17), | |
Sandstorm (0xEC, 0xD5, 0x40), | |
SandyBrown (0xF4, 0xA4, 0x60), | |
SandyTaupe (0x96, 0x71, 0x17), | |
Sangria (0x92, 0x00, 0x0A), | |
SapGreen (0x50, 0x7D, 0x2A), | |
Sapphire (0x08, 0x25, 0x67), | |
SatinSheenGold (0xCB, 0xA1, 0x35), | |
Scarlet (0xFF, 0x20, 0x00), | |
SchoolBusYellow (0xFF, 0xD8, 0x00), | |
ScreamingGreen (0x76, 0xFF, 0x7A), | |
SeaGreen (0x2E, 0x8B, 0x57), | |
SealBrown (0x32, 0x14, 0x14), | |
Seashell (0xFF, 0xF5, 0xEE), | |
SelectiveYellow (0xFF, 0xBA, 0x00), | |
Sepia (0x70, 0x42, 0x14), | |
Shadow (0x8A, 0x79, 0x5D), | |
ShamrockGreen (0x00, 0x9E, 0x60), | |
ShockingPink (0xFC, 0x0F, 0xC0), | |
Sienna (0x88, 0x2D, 0x17), | |
Silver (0xC0, 0xC0, 0xC0), | |
Sinopia (0xCB, 0x41, 0x0B), | |
Skobeloff (0x00, 0x74, 0x74), | |
SkyBlue (0x87, 0xCE, 0xEB), | |
SkyMagenta (0xCF, 0x71, 0xAF), | |
SlateGray (0x70, 0x80, 0x90), | |
Smalt (0x00, 0x33, 0x99), // dark powder blue | |
SmokeyTopaz (0x93, 0x3D, 0x41), | |
SmokyBlack (0x10, 0x0C, 0x08), | |
Snow (0xFF, 0xFA, 0xFA), | |
SpiroDiscoBall (0x0F, 0xC0, 0xFC), | |
SplashedWhite (0xFE, 0xFD, 0xFF), | |
SpringBud (0xA7, 0xFC, 0x00), | |
SpringGreen (0x00, 0xFF, 0x7F), | |
SteelBlue (0x46, 0x82, 0xB4), | |
StilDeGrainYellow (0xFA, 0xDA, 0x5E), | |
Straw (0xE4, 0xD9, 0x6F), | |
Sunglow (0xFF, 0xCC, 0x33), | |
Sunset (0xFA, 0xD6, 0xA5), | |
Tan (0xD2, 0xB4, 0x8C), | |
Tangelo (0xF9, 0x4D, 0x00), | |
Tangerine (0xF2, 0x85, 0x00), | |
TangerineYellow (0xFF, 0xCC, 0x00), | |
Taupe (0x48, 0x3C, 0x32), | |
TaupeGray (0x8B, 0x85, 0x89), | |
TeaGreen (0xD0, 0xF0, 0xC0), | |
TeaRoseOrange (0xF8, 0x83, 0x79), | |
TeaRose (0xF4, 0xC2, 0xC2), | |
Teal (0x00, 0x80, 0x80), | |
TealBlue (0x36, 0x75, 0x88), | |
TealGreen (0x00, 0x6D, 0x5B), | |
Tawny(0xCD, 0x57, 0x00), | |
TerraCotta (0xE2, 0x72, 0x5B), | |
Thistle (0xD8, 0xBF, 0xD8), | |
ThulianPink (0xDE, 0x6F, 0xA1), | |
TickleMePink (0xFC, 0x89, 0xAC), | |
TiffanyBlue (0x0A, 0xBA, 0xB5), | |
TigersEye (0xE0, 0x8D, 0x3C), | |
Timberwolf (0xDB, 0xD7, 0xD2), | |
TitaniumYellow (0xEE, 0xE6, 0x00), | |
Tomato (0xFF, 0x63, 0x47), | |
Toolbox (0x74, 0x6C, 0xC0), | |
TractorRed (0xFD, 0x0E, 0x35), | |
TrolleyGrey (0x80, 0x80, 0x80), | |
TropicalRainForest (0x00, 0x75, 0x5E), | |
TuftsBlue (0x41, 0x7D, 0xC1), | |
Tumbleweed (0xDE, 0xAA, 0x88), | |
TurkishRose (0xB5, 0x72, 0x81), | |
Turquoise (0x30, 0xD5, 0xC8), | |
TurquoiseBlue (0x00, 0xFF, 0xEF), | |
TurquoiseGreen (0xA0, 0xD6, 0xB4), | |
TuscanRed (0x82, 0x35, 0x35), | |
TwilightLavender (0x8A, 0x49, 0x6B), | |
TyrianPurple (0x66, 0x02, 0x3C), | |
Ube (0x88, 0x78, 0xC3), | |
UclaBlue (0x53, 0x68, 0x95), | |
UclaGold (0xFF, 0xB3, 0x00), | |
UfoGreen (0x3C, 0xD0, 0x70), | |
Ultramarine (0x12, 0x0A, 0x8F), | |
UltramarineBlue (0x41, 0x66, 0xF5), | |
UltraPink (0xFF, 0x6F, 0xFF), | |
Umber (0x63, 0x51, 0x47), | |
UnitedNationsBlue (0x5B, 0x92, 0xE5), | |
UnmellowYellow (0xFF, 0xFF, 0x66), | |
UpForestGreen (0x01, 0x44, 0x21), | |
UpMaroon (0x7B, 0x11, 0x13), | |
UpsdellRed (0xAE, 0x20, 0x29), | |
Urobilin (0xE1, 0xAD, 0x21), | |
UscCardinal (0x99, 0x00, 0x00), | |
UscGold (0xFF, 0xCC, 0x00), | |
UtahCrimson (0xD3, 0x00, 0x3F), | |
Vanilla (0xF3, 0xE5, 0xAB), | |
VegasGold (0xC5, 0xB3, 0x58), | |
VenetianRed (0xC8, 0x08, 0x15), | |
Verdigris (0x43, 0xB3, 0xAE), | |
Vermilion (0xE3, 0x42, 0x34), | |
Violet (0x8F, 0x00, 0xFF), | |
Viridian (0x40, 0x82, 0x6D), | |
VividAuburn (0x92, 0x27, 0x24), | |
VividBurgundy (0x9F, 0x1D, 0x35), | |
VividCerise (0xDA, 0x1D, 0x81), | |
VividTangerine (0xFF, 0xA0, 0x89), | |
VividViolet (0x9F, 0x00, 0xFF), | |
WarmBlack (0x00, 0x42, 0x42), | |
Wenge (0x64, 0x54, 0x52), | |
Wheat (0xF5, 0xDE, 0xB3), | |
White (0xFF, 0xFF, 0xFF), | |
WhiteSmoke (0xF5, 0xF5, 0xF5), | |
WildBlueYonder (0xA2, 0xAD, 0xD0), | |
WildStrawberry (0xFF, 0x43, 0xA4), | |
WildWatermelon (0xFC, 0x6C, 0x85), | |
Wisteria (0xC9, 0xA0, 0xDC), | |
Xanadu (0x73, 0x86, 0x78), | |
YaleBlue (0x0F, 0x4D, 0x92), | |
Yellow (0xFF, 0xFF, 0x00), | |
YellowGreen (0x9A, 0xCD, 0x32), | |
Zaffre (0x00, 0x14, 0xA8), | |
ZinnwalditeBrown (0x2C, 0x16, 0x08); | |
////////// implementation /////////////////////////////////////////////////// | |
enum Channel { | |
Red (0), Green (1), Blue (2), Alpha (3); | |
private int channel; | |
Channel(int c) {channel = c;} | |
public int getChannel() {return channel;} | |
} | |
private int[] channels; | |
private void init() { channels = new int[4]; } | |
private void setChannel(Channel c, int x) {channels[c.getChannel()]=x;} | |
private void setChannels(int r, int g, int b) { | |
setChannel(Channel.Red, r); | |
setChannel(Channel.Green, g); | |
setChannel(Channel.Blue, b); | |
} | |
private void setChannels(int r, int g, int b, int a) { | |
setChannels(r,g,b); | |
setChannel(Channel.Alpha, a); | |
} | |
Color() {init(); setChannels(255,255,255);} | |
Color(int r, int g, int b) {init(); setChannels(r,g,b);} | |
Color(int r, int g, int b, int a) {init(); setChannels(r,g,b,a);} | |
public int getChannel(Channel channel) { return channels[channel.getChannel()];} | |
public int getRed() {return getChannel(Channel.Red);} | |
public int getBlue() {return getChannel(Channel.Blue);} | |
public int getGreen() {return getChannel(Channel.Green);} | |
public int getAlpha() {return getChannel(Channel.Alpha);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment