网页预定义颜色编码列表
const unsigned int gl_color_value[] = {
0xF5F5DC,
0x000000,
0xFF0000,
0xD2B48C,
0xFFD700,
0x008080,
0xF0E68C,
0x00FF00,
0x00FFFF,
0x0000FF,
0x00FFFF,
0xFF7F50,
0x008000,
0xFDF5E6,
0xFFC0CB,
0x808080,
0xFAF0E6,
0xDA70D6,
0x4B0082,
0xF5DEB3,
0x8B0000,
0xFF00FF,
0xFFA500,
0xCD853F,
0xA0522D,
0x000080,
0x808000,
0xDDA0DD,
0xFF00FF,
0xFFFFFF,
0xF0F8FF,
0x5F9EA0,
0xBDB76B,
0xF0FFFF,
0x00008B,
0x2E8B57,
0xFFE4C4,
0xA52A2A,
0xFFFAFA,
0xFA8072,
0x008B8B,
0xCD5C5C,
0xFFE4B5,
0x696969,
0x800000,
0xFF1493,
0xB22222,
0xD2691E,
0xE6E6FA,
0xFFDAB9,
0xFFF5EE,
0x006400,
0x98FB98,
0xA9A9A9,
0xEE82EE,
0xFF4500,
0xFF6347,
0x32CD32,
0x6B8E23,
0xC0C0C0,
0x9932CC,
0x800080,
0x1E90FF,
0xDC143C,
0x8B008B,
0xFF8C00,
0xFFFFF0,
0xDAA520,
0xFF69B4,
0xD8BFD8,
0xFFFF00,
0xADD8E6,
0xF5FFFA,
0x87CEEB,
0x6A5ACD,
0x7FFFD4,
0x7CFC00,
0xE0FFFF,
0xDCDCDC,
0xF0FFF0,
0x4682B4,
0xFFF8DC,
0xFFEBCD,
0xF08080,
0x90EE90,
0x0000CD,
0x8FBC8B,
0xFFB6C1,
0xE9967A,
0x708090,
0xD3D3D3,
0x4169E1,
0xFFEFD5,
0x8B4513,
0x9400D3,
0x7FFF00,
0xFFFACD,
0xBA55D3,
0xB0E0E6,
0x191970,
0x8A2BE2,
0x00BFFF,
0xB8860B,
0xEEE8AA,
0x20B2AA,
0xFFDEAD,
0x483D8B,
0xFFFAF0,
0xF5F5F5,
0xFFA07A,
0x228B22,
0x00FF7F,
0xF8F8FF,
0x3CB371,
0xF4A460,
0xDEB887,
0x2F4F4F,
0xADFF2F,
0xFFF0F5,
0x9ACD32,
0xDB7093,
0x556B2F,
0xFFE4E1,
0x40E0D0,
0xFFFFE0,
0x87CEFA,
0xFAEBD7,
0xBC8F8F,
0x9370DB,
0xB0C4DE,
0x7B68EE,
0x66CDAA,
0x778899,
0x6495ED,
0xC71585,
0x00CED1,
0xAFEEEE,
0x00FA9A,
0x48D1CC,
0xFAFAD2
};
颜色表,与上面编码表一一对应
const char *gl_color_str_arr[] = {
"beige",
"black",
"red",
"tan",
"gold",
"teal",
"khaki",
"lime",
"aqua",
"blue",
"cyan",
"coral",
"green",
"oldlace",
"pink",
"gray",
"linen",
"orchid",
"indigo",
"wheat",
"darkred",
"magenta",
"orange",
"peru",
"sienna",
"navy",
"olive",
"plum",
"fuchsia",
"white",
"aliceblue",
"cadetblue",
"darkkhaki",
"azure",
"darkblue",
"seagreen",
"bisque",
"brown",
"snow",
"salmon",
"darkcyan",
"indianred",
"moccasin",
"dimgray",
"maroon",
"deeppink",
"firebrick",
"chocolate",
"lavender",
"peachpuff",
"seashell",
"darkgreen",
"palegreen",
"darkgray",
"violet",
"orangered",
"tomato",
"limegreen",
"olivedrab",
"silver",
"darkorchid",
"purple",
"dodgerblue",
"crimson",
"darkmagenta",
"darkorange",
"ivory",
"goldenrod",
"hotpink",
"thistle",
"yellow",
"lightblue",
"mintcream",
"skyblue",
"slateblue",
"aquamarine",
"lawngreen",
"lightcyan",
"gainsboro",
"honeydew",
"steelblue",
"cornsilk",
"blanchedalmond",
"lightcoral",
"lightgreen",
"mediumblue",
"darkseagreen",
"lightpink",
"darksalmon",
"slategray",
"lightgrey",
"royalblue",
"papayawhip",
"saddlebrown",
"darkviolet",
"chartreuse",
"lemonchiffon",
"mediumorchid",
"powderblue",
"midnightblue",
"blueviolet",
"deepskyblue",
"darkgoldenrod",
"palegoldenrod",
"lightseagreen",
"navajowhite",
"darkslateblue",
"floralwhite",
"whitesmoke",
"lightsalmon",
"forestgreen",
"springgreen",
"ghostwhite",
"mediumseagreen",
"sandybrown",
"burlywood",
"darkslategray",
"greenyellow",
"lavenderblush",
"yellowgreen",
"palevioletred",
"darkolivegreen",
"mistyrose",
"turquoise",
"lightyellow",
"lightskyblue",
"antiquewhite",
"rosybrown",
"mediumpurple",
"lightsteelblue",
"mediumslateblue",
"mediumaquamarine",
"lightslategray",
"cornflowerblue",
"mediumvioletred",
"darkturquoise",
"paleturquoise",
"mediumspringgreen",
"mediumturquoise",
"lightgoldenrodyellow"
};