|
|
c7535b |
|
|
|
c7535b |
|
|
|
7ac038 |
static const struct {
|
|
|
7ac038 |
const char* name;
|
|
|
7ac038 |
unsigned int code;
|
|
|
7ac038 |
} colors[] = {
|
|
|
7ac038 |
{ "aliceblue" , 0xf0f8ffff },
|
|
|
7ac038 |
{ "antiquewhite" , 0xfaebd7ff },
|
|
|
7ac038 |
{ "aqua" , 0x00ffffff },
|
|
|
7ac038 |
{ "aquamarine" , 0x7fffd4ff },
|
|
|
7ac038 |
{ "azure" , 0xf0ffffff },
|
|
|
7ac038 |
{ "beige" , 0xf5f5dcff },
|
|
|
7ac038 |
{ "bisque" , 0xffe4c4ff },
|
|
|
7ac038 |
{ "black" , 0x000000ff },
|
|
|
7ac038 |
{ "blanchedalmond" , 0xffebcdff },
|
|
|
7ac038 |
{ "blue" , 0x0000ffff },
|
|
|
7ac038 |
{ "blueviolet" , 0x8a2be2ff },
|
|
|
7ac038 |
{ "brown" , 0xa52a2aff },
|
|
|
7ac038 |
{ "burlywood" , 0xdeb887ff },
|
|
|
7ac038 |
{ "cadetblue" , 0x5f9ea0ff },
|
|
|
7ac038 |
{ "chartreuse" , 0x7fff00ff },
|
|
|
7ac038 |
{ "chocolate" , 0xd2691eff },
|
|
|
7ac038 |
{ "coral" , 0xff7f50ff },
|
|
|
7ac038 |
{ "cornflowerblue" , 0x6495edff },
|
|
|
7ac038 |
{ "cornsilk" , 0xfff8dcff },
|
|
|
7ac038 |
{ "crimson" , 0xdc143cff },
|
|
|
7ac038 |
{ "cyan" , 0x00ffffff },
|
|
|
7ac038 |
{ "darkblue" , 0x00008bff },
|
|
|
7ac038 |
{ "darkcyan" , 0x008b8bff },
|
|
|
7ac038 |
{ "darkgoldenrod" , 0xb8860bff },
|
|
|
7ac038 |
{ "darkgray" , 0xa9a9a9ff },
|
|
|
7ac038 |
{ "darkgreen" , 0x006400ff },
|
|
|
7ac038 |
{ "darkgrey" , 0xa9a9a9ff },
|
|
|
7ac038 |
{ "darkkhaki" , 0xbdb76bff },
|
|
|
7ac038 |
{ "darkmagenta" , 0x8b008bff },
|
|
|
7ac038 |
{ "darkolivegreen" , 0x556b2fff },
|
|
|
7ac038 |
{ "darkorange" , 0xff8c00ff },
|
|
|
7ac038 |
{ "darkorchid" , 0x9932ccff },
|
|
|
7ac038 |
{ "darkred" , 0x8b0000ff },
|
|
|
7ac038 |
{ "darksalmon" , 0xe9967aff },
|
|
|
7ac038 |
{ "darkseagreen" , 0x8fbc8fff },
|
|
|
7ac038 |
{ "darkslateblue" , 0x483d8bff },
|
|
|
7ac038 |
{ "darkslategray" , 0x2f4f4fff },
|
|
|
7ac038 |
{ "darkslategrey" , 0x2f4f4fff },
|
|
|
7ac038 |
{ "darkturquoise" , 0x00ced1ff },
|
|
|
7ac038 |
{ "darkviolet" , 0x9400d3ff },
|
|
|
7ac038 |
{ "deeppink" , 0xff1493ff },
|
|
|
7ac038 |
{ "deepskyblue" , 0x00bfffff },
|
|
|
7ac038 |
{ "dimgray" , 0x696969ff },
|
|
|
7ac038 |
{ "dodgerblue" , 0x1e90ffff },
|
|
|
7ac038 |
{ "firebrick" , 0xb22222ff },
|
|
|
7ac038 |
{ "floralwhite" , 0xfffaf0ff },
|
|
|
7ac038 |
{ "forestgreen" , 0x228b22ff },
|
|
|
7ac038 |
{ "fuchsia" , 0xff00ffff },
|
|
|
7ac038 |
{ "gainsboro" , 0xdcdcdcff },
|
|
|
7ac038 |
{ "ghostwhite" , 0xf8f8ffff },
|
|
|
7ac038 |
{ "gold" , 0xffd700ff },
|
|
|
7ac038 |
{ "goldenrod" , 0xdaa520ff },
|
|
|
7ac038 |
{ "gray" , 0x808080ff },
|
|
|
7ac038 |
{ "green" , 0x008000ff },
|
|
|
7ac038 |
{ "greenyellow" , 0xadff2fff },
|
|
|
7ac038 |
{ "grey" , 0x808080ff },
|
|
|
7ac038 |
{ "honeydew" , 0xf0fff0ff },
|
|
|
7ac038 |
{ "hotpink" , 0xff69b4ff },
|
|
|
7ac038 |
{ "indianred" , 0xcd5c5cff },
|
|
|
7ac038 |
{ "indigo" , 0x4b0082ff },
|
|
|
7ac038 |
{ "ivory" , 0xfffff0ff },
|
|
|
7ac038 |
{ "khaki" , 0xf0e68cff },
|
|
|
7ac038 |
{ "lavender" , 0xe6e6faff },
|
|
|
7ac038 |
{ "lavenderblush" , 0xfff0f5ff },
|
|
|
7ac038 |
{ "lawngreen" , 0x7cfc00ff },
|
|
|
7ac038 |
{ "lemonchiffon" , 0xfffacdff },
|
|
|
7ac038 |
{ "lightblue" , 0xadd8e6ff },
|
|
|
7ac038 |
{ "lightcoral" , 0xf08080ff },
|
|
|
7ac038 |
{ "lightcyan" , 0xe0ffffff },
|
|
|
7ac038 |
{ "lightgoldenrodyellow", 0xfafad2ff },
|
|
|
7ac038 |
{ "lightgray" , 0xd3d3d3ff },
|
|
|
7ac038 |
{ "lightgreen" , 0x90ee90ff },
|
|
|
7ac038 |
{ "lightgrey" , 0xd3d3d3ff },
|
|
|
7ac038 |
{ "lightpink" , 0xffb6c1ff },
|
|
|
7ac038 |
{ "lightsalmon" , 0xffa07aff },
|
|
|
7ac038 |
{ "lightseagreen" , 0x20b2aaff },
|
|
|
7ac038 |
{ "lightskyblue" , 0x87cefaff },
|
|
|
7ac038 |
{ "lightslategray" , 0x778899ff },
|
|
|
7ac038 |
{ "lightslategrey" , 0x778899ff },
|
|
|
7ac038 |
{ "lightsteelblue" , 0xb0c4deff },
|
|
|
7ac038 |
{ "lightyellow" , 0xffffe0ff },
|
|
|
7ac038 |
{ "lime" , 0x00ff00ff },
|
|
|
7ac038 |
{ "limegreen" , 0x32cd32ff },
|
|
|
7ac038 |
{ "linen" , 0xfaf0e6ff },
|
|
|
7ac038 |
{ "magenta" , 0xff00ffff },
|
|
|
7ac038 |
{ "maroon" , 0x800000ff },
|
|
|
7ac038 |
{ "mediumaquamarine" , 0x66cdaaff },
|
|
|
7ac038 |
{ "mediumblue" , 0x0000cdff },
|
|
|
7ac038 |
{ "mediumorchid" , 0xba55d3ff },
|
|
|
7ac038 |
{ "mediumpurple" , 0x9370dbff },
|
|
|
7ac038 |
{ "mediumseagreen" , 0x3cb371ff },
|
|
|
7ac038 |
{ "mediumslateblue" , 0x7b68eeff },
|
|
|
7ac038 |
{ "mediumspringgreen" , 0x00fa9aff },
|
|
|
7ac038 |
{ "mediumturquoise" , 0x48d1ccff },
|
|
|
7ac038 |
{ "mediumvioletred" , 0xc71585ff },
|
|
|
7ac038 |
{ "midnightblue" , 0x191970ff },
|
|
|
7ac038 |
{ "mintcream" , 0xf5fffaff },
|
|
|
7ac038 |
{ "mistyrose" , 0xffe4e1ff },
|
|
|
7ac038 |
{ "moccasin" , 0xffe4b5ff },
|
|
|
7ac038 |
{ "navajowhite" , 0xffdeadff },
|
|
|
7ac038 |
{ "navy" , 0x000080ff },
|
|
|
7ac038 |
{ "oldlace" , 0xfdf5e6ff },
|
|
|
7ac038 |
{ "olive" , 0x808000ff },
|
|
|
7ac038 |
{ "olivedrab" , 0x6b8e23ff },
|
|
|
7ac038 |
{ "orange" , 0xffa500ff },
|
|
|
7ac038 |
{ "orangered" , 0xff4500ff },
|
|
|
7ac038 |
{ "orchid" , 0xda70d6ff },
|
|
|
7ac038 |
{ "palegoldenrod" , 0xeee8aaff },
|
|
|
7ac038 |
{ "palegreen" , 0x98fb98ff },
|
|
|
7ac038 |
{ "paleturquoise" , 0xafeeeeff },
|
|
|
7ac038 |
{ "palevioletred" , 0xdb7093ff },
|
|
|
7ac038 |
{ "papayawhip" , 0xffefd5ff },
|
|
|
7ac038 |
{ "peachpuff" , 0xffdab9ff },
|
|
|
7ac038 |
{ "peru" , 0xcd853fff },
|
|
|
7ac038 |
{ "pink" , 0xffc0cbff },
|
|
|
7ac038 |
{ "plum" , 0xdda0ddff },
|
|
|
7ac038 |
{ "powderblue" , 0xb0e0e6ff },
|
|
|
7ac038 |
{ "purple" , 0x800080ff },
|
|
|
7ac038 |
{ "rebeccapurple" , 0x663399ff },
|
|
|
7ac038 |
{ "red" , 0xff0000ff },
|
|
|
7ac038 |
{ "rosybrown" , 0xbc8f8fff },
|
|
|
7ac038 |
{ "royalblue" , 0x4169e1ff },
|
|
|
7ac038 |
{ "saddlebrown" , 0x8b4513ff },
|
|
|
7ac038 |
{ "salmon" , 0xfa8072ff },
|
|
|
7ac038 |
{ "sandybrown" , 0xf4a460ff },
|
|
|
7ac038 |
{ "seagreen" , 0x2e8b57ff },
|
|
|
7ac038 |
{ "seashell" , 0xfff5eeff },
|
|
|
7ac038 |
{ "sienna" , 0xa0522dff },
|
|
|
7ac038 |
{ "silver" , 0xc0c0c0ff },
|
|
|
7ac038 |
{ "skyblue" , 0x87ceebff },
|
|
|
7ac038 |
{ "slateblue" , 0x6a5acdff },
|
|
|
7ac038 |
{ "slategray" , 0x708090ff },
|
|
|
7ac038 |
{ "slategrey" , 0x708090ff },
|
|
|
7ac038 |
{ "snow" , 0xfffafaff },
|
|
|
7ac038 |
{ "springgreen" , 0x00ff7fff },
|
|
|
7ac038 |
{ "steelblue" , 0x4682b4ff },
|
|
|
7ac038 |
{ "tan" , 0xd2b48cff },
|
|
|
7ac038 |
{ "teal" , 0x008080ff },
|
|
|
7ac038 |
{ "thistle" , 0xd8bfd8ff },
|
|
|
7ac038 |
{ "tomato" , 0xff6347ff },
|
|
|
7ac038 |
{ "turquoise" , 0x40e0d0ff },
|
|
|
7ac038 |
{ "violet" , 0xee82eeff },
|
|
|
7ac038 |
{ "wheat" , 0xf5deb3ff },
|
|
|
7ac038 |
{ "white" , 0xffffffff },
|
|
|
7ac038 |
{ "whitesmoke" , 0xf5f5f5ff },
|
|
|
7ac038 |
{ "yellow" , 0xffff00ff },
|
|
|
7ac038 |
{ "yellowgreen" , 0x9acd32ff },
|
|
|
7ac038 |
{ "transparent" , 0x00000000 }
|
|
|
c7535b |
};
|
|
|
7ac038 |
|