String colorNames[] ={"Alizarin", "Amaranth", "Amber", "Amethyst", "Apricot", "Aqua", "Aquamarine", "Asparagus", "Auburn", "Azure", "Beige", "Bistre", "Black", "Blue", "BlueGreen", "BlueViolet", "BondiBlue", "Brass", "Bronze", "Brown", "Buff", "Burgundy", "BurntOrange", "BurntSienna", "BurntUmber", "CamouflageGreen", "CaputMortuum", "Cardinal", "Carmine", "CarrotOrange", "Celadon", "Cerise", "Cerulean", "Champagne", "Charcoal", "Chartreuse", "CherryBlossomPink", "Chestnut", "Chocolate", "Cinnabar", "Cinnamon", "Cobalt", "Copper", "Coral", "Corn", "Cornflower", "Cream", "Crimson", "Cyan", "Dandelion", "Denim", "Ecru", "Emerald", "Eggplant", "FaluRed", "FernGreen", "Firebrick", "Flax", "ForestGreen", "FrenchRose", "Fuchsia", "Gamboge", "Gold", "Goldenrod", "Green", "Grey", "HanPurple", "Harlequin", "Heliotrope", "HollywoodCerise", "Indigo", "Ivory", "Jade", "KellyGreen", "Khaki", "Lavender", "LawnGreen", "Lemon", "LemonChiffon", "Lilac", "Lime", "LimeGreen", "Linen", "Magenta", "Magnolia", "Malachite", "Maroon", "Mauve", "MidnightBlue", "MintGreen", "MistyRose", "MossGreen", "Mustard", "Myrtle", "NavajoWhite", "NavyBlue", "Ochre", "OfficeGreen", "Olive", "Olivine", "Orange", "Orchid", "PapayaWhip", "Peach", "Pear", "Periwinkle", "Persimmon", "PineGreen", "Pink", "Platinum", "Plum", "PowderBlue", "Puce", "PrussianBlue", "PsychedelicPurple", "Pumpkin", "Purple", "QuartzGrey", "RawUmber", "Razzmatazz", "Red", "RobinEggBlue", "Rose", "RoyalBlue", "RoyalPurple", "Ruby", "Russet", "Rust", "SafetyOrange", "Saffron", "Salmon", "SandyBrown", "Sangria", "Sapphire", "Scarlet", "SchoolBusYellow", "SeaGreen", "Seashell", "Sepia", "ShamrockGreen", "ShockingPink", "Silver", "SkyBlue", "SlateGrey", "Smalt", "SpringBud", "SpringGreen", "SteelBlue", "Tan", "Tangerine", "Taupe", "Teal", "Tawny", "TerraCotta", "Thistle", "TitaniumWhite", "Tomato", "Turquoise", "TyrianPurple", "Ultramarine", "VanDykeBrown", "Vermilion", "Violet", "Viridian", "Wheat", "White", "Wisteria", "Xanthic", "Yellow", "Zucchini"}; color colors[] = {color(0xe3, 0x26, 0x36), color(0xe5, 0x2b, 0x50), color(0xff, 0xbf, 0x00), color(0x99, 0x66, 0xcc), color(0xfb, 0xce, 0xb1), color(0x00, 0xff, 0xff), color(0x7f, 0xff, 0xd4), color(0x7b, 0xa0, 0x5b), color(0x6d, 0x35, 0x1a), color(0x00, 0x7f, 0xff), color(0xf5, 0xf5, 0xdc), color(0x3d, 0x2b, 0x1f), color(0x00, 0x00, 0x00), color(0x00, 0x00, 0xff), color(0x00, 0xdd, 0xdd), color(0x8a, 0x2b, 0xe2), color(0x00, 0x95, 0xb6), color(0xb5, 0xa6, 0x42), color(0xcd, 0x7f, 0x32), color(0x96, 0x4b, 0x00), color(0xf0, 0xdc, 0x82), color(0x90, 0x00, 0x20), color(0xcc, 0x55, 0x00), color(0xe9, 0x74, 0x51), color(0x8a, 0x33, 0x24), color(0x78, 0x86, 0x6b), color(0x59, 0x27, 0x20), color(0xc4, 0x1e, 0x3a), color(0x96, 0x00, 0x18), color(0xed, 0x91, 0x21), color(0xac, 0xe1, 0xaf), color(0xde, 0x31, 0x63), color(0x00, 0x7b, 0xa7), color(0xf7, 0xe7, 0xce), color(0x46, 0x46, 0x46), color(0x7f, 0xff, 0x00), color(0xff, 0xb7, 0xc5), color(0xcd, 0x5c, 0x5c), color(0x7b, 0x3f, 0x00), color(0xe3, 0x42, 0x34), color(0xd2, 0x69, 0x1e), color(0x00, 0x47, 0xab), color(0xb8, 0x73, 0x33), color(0xff, 0x7f, 0x50), color(0xfb, 0xec, 0x5d), color(0x64, 0x95, 0xed), color(0xff, 0xfd, 0xd0), color(0xdc, 0x14, 0x3c), color(0x00, 0xff, 0xff), color(0xfe, 0xd8, 0x5d), color(0x15, 0x60, 0xbd), color(0xc2, 0xb2, 0x80), color(0x50, 0xc8, 0x78), color(0x61, 0x40, 0x51), color(0x80, 0x18, 0x18), color(0x4f, 0x79, 0x42), color(0xb2, 0x22, 0x22), color(0xee, 0xdc, 0x82), color(0x22, 0x8b, 0x22), color(0xf6, 0x4a, 0x8a), color(0xff, 0x00, 0xff), color(0xe4, 0x9b, 0x0f), color(0xd4, 0xaf, 0x37), color(0xda, 0xa5, 0x20), color(0x00, 0xff, 0x00), color(0x80, 0x80, 0x80), color(0x52, 0x18, 0xfa), color(0x3f, 0xff, 0x00), color(0xdf, 0x73, 0xff), color(0xf4, 0x00, 0xa1), color(0x00, 0x41, 0x6a), color(0xff, 0xff, 0xf0), color(0x00, 0xa8, 0x6b), color(0x4c, 0xbb, 0x17), color(0xc3, 0xb0, 0x91), color(0xb5, 0x7e, 0xdc), color(0x7c, 0xfc, 0x00), color(0xfd, 0xe9, 0x10), color(0xff, 0xfa, 0xcd), color(0xc8, 0xa2, 0xc8), color(0x00, 0xff, 0x00), color(0x32, 0xcd, 0x32), color(0xfa, 0xf0, 0xe6), color(0xff, 0x00, 0xff), color(0xf8, 0xf4, 0xff), color(0x0b, 0xda, 0x51), color(0x80, 0x00, 0x00), color(0xe0, 0xb0, 0xff), color(0x19, 0x19, 0x70), color(0x98, 0xff, 0x98), color(0xff, 0xe4, 0xe1), color(0xad, 0xdf, 0xad), color(0xff, 0xdb, 0x58), color(0x21, 0x42, 0x1e), color(0xff, 0xde, 0xad), color(0x00, 0x00, 0x80), color(0xcc, 0x77, 0x22), color(0x00, 0x80, 0x00), color(0x80, 0x80, 0x00), color(0x9a, 0xb9, 0x73), color(0xff, 0x7f, 0x00), color(0xda, 0x70, 0xd6), color(0xff, 0xef, 0xd5), color(0xff, 0xe5, 0xb4), color(0xd1, 0xe2, 0x31), color(0xcc, 0xcc, 0xff), color(0xec, 0x58, 0x00), color(0x01, 0x79, 0x6f), color(0xff, 0xc0, 0xcb), color(0xe5, 0xe4, 0xe2), color(0xcc, 0x99, 0xcc), color(0xb0, 0xe0, 0xe6), color(0xcc, 0x88, 0x99), color(0x00, 0x31, 0x53), color(0xdd, 0x00, 0xff), color(0xff, 0x75, 0x18), color(0x80, 0x00, 0x80), color(0x6c, 0x69, 0x61), color(0x73, 0x4a, 0x12), color(0xe3, 0x0b, 0x5c), color(0xff, 0x00, 0x00), color(0x00, 0xcc, 0xcc), color(0xff, 0x00, 0x7f), color(0x41, 0x69, 0xe1), color(0x6b, 0x3f, 0xa0), color(0xe0, 0x11, 0x5f), color(0x80, 0x46, 0x1b), color(0xb7, 0x41, 0x0e), color(0xff, 0x66, 0x00), color(0xf4, 0xc4, 0x30), color(0xff, 0x8c, 0x69), color(0xf4, 0xa4, 0x60), color(0x92, 0x00, 0x0a), color(0x08, 0x25, 0x67), color(0xff, 0x24, 0x00), color(0xff, 0xd8, 0x00), color(0x2e, 0x8b, 0x57), color(0xff, 0xf5, 0xee), color(0x70, 0x42, 0x14), color(0x00, 0x9e, 0x60), color(0xfc, 0x0f, 0xc0), color(0xc0, 0xc0, 0xc0), color(0x87, 0xce, 0xeb), color(0x70, 0x80, 0x90), color(0x00, 0x33, 0x99), color(0xa7, 0xfc, 0x00), color(0x00, 0xff, 0x7f), color(0x46, 0x82, 0xb4), color(0xd2, 0xb4, 0x8c), color(0xf2, 0x85, 0x00), color(0x48, 0x3c, 0x32), color(0x00, 0x80, 0x80), color(0xcd, 0x57, 0x00), color(0xe2, 0x72, 0x5b), color(0xd8, 0xbf, 0xd8), color(0xff, 0xff, 0xff), color(0xff, 0x63, 0x47), color(0x30, 0xd5, 0xc8), color(0x66, 0x02, 0x3c), color(0x12, 0x0a, 0x8f), color(0x41, 0x30, 0x00), color(0xe3, 0x42, 0x34), color(0x8b, 0x00, 0xff), color(0x40, 0x82, 0x6d), color(0xf5, 0xde, 0xb3), color(0xff, 0xff, 0xff), color(0xc9, 0xa0, 0xdc), color(0xee, 0xed, 0x09), color(0xff, 0xff, 0x00), color(0x50, 0x60, 0x22)}; void setup() {size(500, 500); frameRate(.4); } void draw() { int colorNum; float divider; background(0); divider = height*.618; colorNum = int(random(colorNames.length)); fill(colors[colorNum]); rect(0, 0, width, divider); textAlign(CENTER, TOP); textSize(50); text(colorNames[colorNum], width/2, divider); }