OpenGL 색상 테이블 입니다. 이런거 필요한분 계실까봐...

lalupo20의 이미지

const GLfloat Color::aliceblue[] = { 240.0f / 255.0f, 248.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::black[] = { 0.0f, 0.0f, 0.0f };
const GLfloat Color::chartreuse[] = { 127.0f / 255.0f, 255.0f / 255.0f, 0.0f / 255.0f };
const GLfloat Color::darkblue[] = { 1.0f / 255.0f, 0.0f / 255.0f, 135.0f / 255.0f };
const GLfloat Color::darkolivegreen[] = { 85.0f / 255.0f, 107.0f / 255.0f, 47.0f / 255.0f };
const GLfloat Color::darkslategray[] = { 47.0f / 255.0f, 79.0f / 255.0f, 79.0f / 255.0f };
const GLfloat Color::firebrick[] = { 178.0f / 255.0f, 34.0f / 255.0f, 34.0f / 255.0f };
const GLfloat Color::goldenrod[] = { 218.0f / 255.0f, 165.0f / 255.0f, 32.0f / 255.0f };
const GLfloat Color::indigo[] = { 75.0f / 255.0f, 0.0f / 255.0f, 130.0f / 255.0f };
const GLfloat Color::lightblue[] = { 173.0f / 255.0f, 216.0f / 255.0f, 230.0f / 255.0f };
const GLfloat Color::lightsalmon[] = { 255.0f / 255.0f, 160.0f / 255.0f, 122.0f / 255.0f };
const GLfloat Color::limegreen[] = { 50.0f / 255.0f, 205.0f / 255.0f, 50.0f / 255.0f };
const GLfloat Color::mediumpurple[] = { 147.0f / 255.0f, 112.0f / 255.0f, 216.0f / 255.0f };
const GLfloat Color::mintcream[] = { 245.0f / 255.0f, 255.0f / 255.0f, 250.0f / 255.0f };
const GLfloat Color::olivedrab[] = { 104.0f / 255.0f, 142.0f / 255.0f, 35.0f / 255.0f };
const GLfloat Color::palevioletred[] = { 216.0f / 255.0f, 112.0f / 255.0f, 147.0f / 255.0f };
const GLfloat Color::purple[] = { 128.0f / 255.0f, 0.0f, 128.0f / 255.0f };
const GLfloat Color::seagreen[] = { 46.0f / 255.0f, 139.0f / 255.0f, 87.0f / 255.0f };
const GLfloat Color::snow[] = { 255.0f / 255.0f, 250.0f / 255.0f, 250.0f / 255.0f };
const GLfloat Color::turquoise[] = { 64.0f / 255.0f, 224.0f / 255.0f, 208.0f / 255.0f };
 
const GLfloat Color::antiquewhite[] = { 250.0f / 255.0f, 235.0f / 255.0f, 215.0f / 255.0f };
const GLfloat Color::blanchedalmond[] = { 255.0f / 255.0f, 235.0f / 255.0f, 205.0f / 255.0f };
const GLfloat Color::chocolate[] = { 210.0f / 255.0f, 105.0f / 255.0f, 30.0f / 255.0f };
const GLfloat Color::darkcyan[] = { 0.0f, 0.0f, 139.0f / 255.0f };
const GLfloat Color::darkorange[] = { 255.0f / 255.0f, 140.0f / 255.0f, 0.0f };
const GLfloat Color::darkturquiise[] = { 0.0f, 206.0f / 255.0f, 208.0f / 255.0f };
const GLfloat Color::floralwhite[] = { 255.0f / 255.0f, 250.0f / 255.0f, 240.0f / 255.0f };
const GLfloat Color::gray[] = { 128.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f };
const GLfloat Color::ivory[] = { 255.0f / 255.0f, 255.0f / 255.0f, 240.0f / 255.0f };
const GLfloat Color::lightcoral[] = { 240.0f / 255.0f, 128.0f / 255.0f, 128.0f / 255.0f };
const GLfloat Color::lightseagreen[] = { 32.0f / 255.0f, 178.0f / 255.0f, 170.0f / 255.0f };
const GLfloat Color::linen[] = { 250.0f / 255.0f, 240.0f / 255.0f, 230.0f / 255.0f };
const GLfloat Color::mediumseagreen[] = { 60.0f / 255.0f, 179.0f / 255.0f, 113.0f / 255.0f };
const GLfloat Color::mistyrose[] = { 255.0f / 255.0f, 228.0f / 255.0f, 225.0f / 255.0f };
const GLfloat Color::orange[] = { 255.0f / 255.0f, 165.0f / 255.0f, 0.0f };
const GLfloat Color::papayawhip[] = { 255.0f / 255.0f, 239.0f / 255.0f, 213.0f / 255.0f };
const GLfloat Color::red[] = { 255.0f / 255.0f, 0.0f, 0.0f };
const GLfloat Color::seashell[] = { 255.0f / 255.0f, 245.0f / 255.0f, 238.0f / 255.0f };
const GLfloat Color::springgreen[] = { 0.0f, 255.0f / 255.0f, 127.0f / 255.0f };
const GLfloat Color::violet[] = { 238.0f / 255.0f, 130.0f / 255.0f, 238.0f };
 
 
const GLfloat Color::aqua[] = { 0.0f / 255.0f, 0.0f / 255.0f, 0.0f / 255.0f };
const GLfloat Color::blue[] = { 0.0f, 0.0f, 255.0f / 255.0f };
const GLfloat Color::coral[] = { 255.0f / 255.0f, 127.0f / 255.0f, 80.0f / 255.0f };
const GLfloat Color::darkgoldenrod[] = { 184.0f / 255.0f, 134.0f / 255.0f, 11.0f / 255.0f };
const GLfloat Color::darkorchid[] = { 153.0f / 255.0f, 50.0f / 255.0f, 204.0f / 255.0f };
const GLfloat Color::darkviolet[] = { 148.0f / 255.0f, 0.0f, 211.0f / 255.0f };
const GLfloat Color::forestgreen[] = { 34.0f / 255.0f, 139.0f / 255.0f, 34.0f / 255.0f };
const GLfloat Color::green[] = { 0.0f, 128.0f / 255.0f, 0.0f };
const GLfloat Color::khaki[] = { 240.0f / 255.0f, 230.0f / 255.0f, 140.0f / 255.0f };
const GLfloat Color::lightcyan[] = { 224.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::lightskyblue[] = { 135.0f / 255.0f, 206.0f / 255.0f, 250.0f / 255.0f };
const GLfloat Color::magenta[] = { 255.0f / 255.0f, 0.0f, 255.0f / 255.0f };
const GLfloat Color::mediumslateblue[] = { 123.0f / 255.0f, 104.0f / 255.0f, 238.0f / 255.0f };
const GLfloat Color::moccasin[] = { 255.0f / 255.0f, 228.0f / 255.0f, 181.0f / 255.0f };
const GLfloat Color::orangered[] = { 255.0f / 255.0f, 69.0f / 255.0f, 0.0f };
const GLfloat Color::peachpuff[] = { 255.0f / 255.0f, 218.0f / 255.0f, 185.0f / 255.0f };
const GLfloat Color::rosybrown[] = { 188.0f / 255.0f, 143.0f / 255.0f, 143.0f / 255.0f };
const GLfloat Color::sienna[] = { 160.0f / 255.0f, 82.0f / 255.0f, 45.0f / 255.0f };
const GLfloat Color::steelblue[] = { 70.0f / 255.0f, 130.0f / 255.0f, 180.0f / 255.0f };
const GLfloat Color::wheat[] = { 245.0f / 255.0f, 222.0f / 255.0f, 179.0f / 255.0f };
 
 
const GLfloat Color::aquamarine[] = { 127.0f / 255.0f, 255.0f / 255.0f, 212.0f / 255.0f };
const GLfloat Color::blueviolte[] = { 138.0f / 255.0f, 43.0f / 255.0f, 226.0f / 255.0f };
const GLfloat Color::comflowerblue[] = { 100.0f / 255.0f, 149.0f / 255.0f, 237.0f / 255.0f };
const GLfloat Color::darkgray[] = { 169.0f / 255.0f, 169.0f / 255.0f, 169.0f / 255.0f };
const GLfloat Color::darkred[] = { 139.0f / 255.0f, 0.0f, 0.0f };
const GLfloat Color::deeppink[] = { 255.0f / 255.0f, 20.0f / 255.0f, 147.0f / 255.0f };
const GLfloat Color::fuchsia[] = { 255.0f / 255.0f, 0.0f, 255.0f / 255.0f };
const GLfloat Color::greenyellow[] = { 173.0f / 255.0f, 255.0f / 255.0f, 47.0f / 255.0f };
const GLfloat Color::lavender[] = { 230.0f / 255.0f, 230.0f / 255.0f, 250.0f / 255.0f };
const GLfloat Color::lightgoldenrodyellow[] = { 250.0f / 255.0f, 250.0f / 255.0f, 210.0f / 210.0f };
const GLfloat Color::lightslategray[] = { 119.0f / 255.0f, 136.0f / 255.0f, 153.0f / 255.0f };
const GLfloat Color::maroon[] = { 128.0f / 255.0f, 0.0f, 0.0f };
const GLfloat Color::mediumspringgreen[] = { 0.0f / 255.0f, 250.0f / 255.0f, 154.0f / 255.0f };
const GLfloat Color::navajowhite[] = { 255.0f / 255.0f, 222.0f / 255.0f, 173.0f / 255.0f };
const GLfloat Color::orchid[] = { 218.0f / 255.0f, 112.0f / 255.0f, 214.0f / 255.0f };
const GLfloat Color::peru[] = { 205.0f / 255.0f, 133.0f / 255.0f, 63.0f / 255.0f };
const GLfloat Color::royalblue[] = { 65.0f / 255.0f, 105.0f / 255.0f, 225.0f / 255.0f };
const GLfloat Color::silver[] = { 192.0f / 255.0f, 192.0f / 255.0f, 192.0f / 255.0f };
const GLfloat Color::tan[] = { 210.0f / 255.0f, 180.0f / 255.0f, 140.0f / 255.0f };
const GLfloat Color::white[] = { 255.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::azure[] = { 240.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::brown[] = { 165.0f / 255.0f, 42.0f / 255.0f, 42.0f / 255.0f };
const GLfloat Color::comsilk[] = { 255.0f / 255.0f, 248.0f / 255.0f, 220.0f / 255.0f };
const GLfloat Color::darkgreen[] = { 0.0f, 100.0f / 255.0f, 0.0f };
const GLfloat Color::darksalmon[] = { 233.0f / 255.0f, 150.0f / 255.0f, 122.0f / 255.0f };
const GLfloat Color::deepskyblue[] = { 0.0f, 191.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::gainsboro[] = { 220.0f / 255.0f, 220.0f / 255.0f, 220.0f / 255.0f };
const GLfloat Color::honeydew[] = { 240.0f / 255.0f, 255.0f / 255.0f, 240.0f / 255.0f };
const GLfloat Color::lavenderblush[] = { 255.0f / 255.0f, 240.0f / 255.0f, 245.0f / 255.0f };
const GLfloat Color::lightgreen[] = { 144.0f / 255.0f, 238.0f / 255.0f, 144.0f / 255.0f };
const GLfloat Color::lightsteelblue[] = { 176.0f / 255.0f, 196.0f / 255.0f, 222.0f / 255.0f };
const GLfloat Color::mediumauqamrine[] = { 102.0f / 255.0f, 205.0f / 255.0f, 170.0f / 255.0f };
const GLfloat Color::mediumturquoise[] = { 72.0f / 255.0f, 209.0f / 255.0f, 204.0f / 255.0f };
const GLfloat Color::navy[] = { 0.0f / 255.0f, 0.0f / 255.0f, 128.0f / 255.0f };
const GLfloat Color::palegoldenrod[] = { 238.0f / 255.0f, 232.0f / 255.0f, 170.0f / 255.0f };
const GLfloat Color::pink[] = { 255.0f / 255.0f, 192.0f / 255.0f, 203.0f / 255.0f };
const GLfloat Color::saddlebrown[] = { 139.0f / 255.0f, 69.0f / 255.0f, 19.0f / 255.0f };
const GLfloat Color::skyblue[] = { 135.0f / 255.0f, 206.0f / 255.0f, 235.0f / 255.0f };
const GLfloat Color::teal[] = { 0.0f, 128.0f / 255.0f, 128.0f / 255.0f };
const GLfloat Color::whitesmoke[] = { 245.0f / 255.0f, 245.0f / 255.0f, 245.0f / 255.0f };
 
const GLfloat Color::beige[] = { 245.0f / 255.0f, 245.0f / 255.0f, 220.0f / 255.0f };
const GLfloat Color::burlywood[] = { 222.0f / 255.0f, 184.0f / 255.0f, 135.0f / 255.0f };
const GLfloat Color::crimson[] = { 220.0f / 255.0, 20.0f / 255.0f, 60.0f / 255.0f };
const GLfloat Color::darkkhaki[] = { 189.0f / 255.0f, 183.0f / 255.0f, 107.0f / 255.0f };
const GLfloat Color::darkseagreen[] = { 143.0f / 255.0f, 188.0f / 255.0f, 143.0f / 255.0f };
const GLfloat Color::dimgray[] = { 105.0f / 255.0f, 105.0f / 255.0f, 105.0f / 255.0f };
const GLfloat Color::ghostwhite[] = { 248.0f / 255.0f, 248.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::hotpink[] = { 255.0f / 255.0f, 105.0f / 255.0f, 180.0f / 255.0f };
const GLfloat Color::lawngreen[] = { 124.0f / 255.0f, 252.0f / 255.0f, 0.0f };
const GLfloat Color::lightgrey[] = { 211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f };
const GLfloat Color::lightyellow[] = { 255.0f / 255.0f, 255.0f / 255.0f, 224.0f / 255.0f };
const GLfloat Color::mediumblue[] = { 0.0f, 0.0f, 205.0f / 255.0f };
const GLfloat Color::mediumvioletred[] = { 199.0f / 255.0f, 21.0f / 255.0f, 133.0f / 255.0f };
const GLfloat Color::oldlace[] = { 253.0f / 255.0f, 245.0f / 255.0f, 230.0f / 255.0f };
const GLfloat Color::palegreen[] = { 152.0f / 255.0f, 251.0f / 255.0f, 152.0f / 255.0f };
const GLfloat Color::plum[] = { 221.0f / 255.0f, 160.0f / 255.0f, 221.0f / 255.0f };
const GLfloat Color::salmon[] = { 250.0f / 255.0f, 128.0f / 255.0f, 114.0f / 255.0f };
const GLfloat Color::slateblue[] = { 106.0f / 255.0f, 90.0f / 255.0f, 205.0f / 255.0f };
const GLfloat Color::thistle[] = { 216.0f / 255.0f, 191.0f / 255.0f, 216.0f / 255.0f };
const GLfloat Color::yellow[] = { 255.0f / 255.0f, 255.0f / 255.0f, 0.0f };
 
const GLfloat Color::bisque[] = { 255.0f / 255.0f, 228.0f / 255.0f, 196.0f / 255.0f };
const GLfloat Color::cadetblue[] = { 95.0f / 255.0f, 158.0f / 255.0f, 160.0f / 255.0f };
const GLfloat Color::cyan[] = { 0.0f / 255.0f, 255.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::darkmagenta[] = { 139.0f / 255.0f, 0.0f, 139.0f / 255.0f };
const GLfloat Color::darkslateblue[] = { 72.0f / 255.0f, 61.0f / 255.0f, 139.0f / 255.0f };
const GLfloat Color::dodgerblue[] = { 30.0f / 255.0f, 144.0f / 255.0f, 255.0f / 255.0f };
const GLfloat Color::gold[] = { 255.0f / 255.0f, 215.0f / 255.0f, 0.0f };
const GLfloat Color::indianred[] = { 205.0f / 255.0f, 92.0f / 255.0f, 92.0f / 255.0f };
const GLfloat Color::lemonchiffon[] = { 255.0f / 255.0f, 250.0f / 255.0f, 205.0f / 255.0f };
const GLfloat Color::lightpink[] = { 255.0f / 255.0f, 182.0f / 255.0f, 193.0f / 255.0f };
const GLfloat Color::lime[] = { 0.0f, 1.0f, 0.0f };
const GLfloat Color::mediumorchid[] = { 186.0f / 255.0f, 85.0f / 255.0f, 211.0f / 255.0f };
const GLfloat Color::midnightblue[] = { 25.0f / 255.0f, 25.0f / 255.0f, 112.0f / 255.0f };
const GLfloat Color::olive[] = { 128.0f / 255.0f, 128.0f / 255.0f, 0.0f };
const GLfloat Color::paleturquoise[] = { 175.0f / 255.0f, 238.0f / 255.0f, 238.0f / 255.0f };
const GLfloat Color::powderblue[] = { 176.0f / 255.0f, 224.0f / 255.0f, 230.0f / 255.0f };
const GLfloat Color::sandybrown[] = { 244.0f / 255.0f, 164.0f / 255.0f, 96.0f / 255.0f };
const GLfloat Color::slategray[] = { 112.0f / 255.0f, 128.0f / 255.0f, 144.0f / 255.0f };
const GLfloat Color::tomato[] = { 255.0f / 255.0f, 99.0f / 255.0f, 71.0f / 255.0f };
const GLfloat Color::yellowgreen[] = { 154.0f / 255.0f, 205.0f / 255.0f , 255.0f / 255.0f };

class Color {
public:
	static const GLfloat aliceblue[];
	static const GLfloat black[];
	static const GLfloat chartreuse[];
	static const GLfloat darkblue[];
	static const GLfloat darkolivegreen[];
	static const GLfloat darkslategray[];
	static const GLfloat firebrick[];
	static const GLfloat goldenrod[];
	static const GLfloat indigo[];
	static const GLfloat lightblue[];
	static const GLfloat lightsalmon[];
	static const GLfloat limegreen[];
	static const GLfloat mediumpurple[];
	static const GLfloat mintcream[];
	static const GLfloat olivedrab[];
	static const GLfloat palevioletred[];
	static const GLfloat purple[];
	static const GLfloat seagreen[];
	static const GLfloat snow[];
	static const GLfloat turquoise[];
 
 
	static const GLfloat antiquewhite[];
	static const GLfloat blanchedalmond[];
	static const GLfloat chocolate[];
	static const GLfloat darkcyan[];
	static const GLfloat darkorange[];
	static const GLfloat darkturquiise[];
	static const GLfloat floralwhite[];
	static const GLfloat gray[];
	static const GLfloat ivory[];
	static const GLfloat lightcoral[];
	static const GLfloat lightseagreen[];
	static const GLfloat linen[];
	static const GLfloat mediumseagreen[];
	static const GLfloat mistyrose[];
	static const GLfloat orange[];
	static const GLfloat papayawhip[];
	static const GLfloat red[];
	static const GLfloat seashell[];
	static const GLfloat springgreen[];
	static const GLfloat violet[];
 
 
	static const GLfloat aqua[];
	static const GLfloat blue[];
	static const GLfloat coral[];
	static const GLfloat darkgoldenrod[];
	static const GLfloat darkorchid[];
	static const GLfloat darkviolet[];
	static const GLfloat forestgreen[];
	static const GLfloat green[];
	static const GLfloat khaki[];
	static const GLfloat lightcyan[];
	static const GLfloat lightskyblue[];
	static const GLfloat magenta[];
	static const GLfloat mediumslateblue[];
	static const GLfloat moccasin[];
	static const GLfloat orangered[];
	static const GLfloat peachpuff[];
	static const GLfloat rosybrown[];
	static const GLfloat sienna[];
	static const GLfloat steelblue[];
	static const GLfloat wheat[];
 
	static const GLfloat aquamarine[];
	static const GLfloat blueviolte[];
	static const GLfloat comflowerblue[];
	static const GLfloat darkgray[];
	static const GLfloat darkred[];
	static const GLfloat deeppink[];
	static const GLfloat fuchsia[];
	static const GLfloat greenyellow[];
	static const GLfloat lavender[];
	static const GLfloat lightgoldenrodyellow[];
	static const GLfloat lightslategray[];
	static const GLfloat maroon[];
	static const GLfloat mediumspringgreen[];
	static const GLfloat navajowhite[];
	static const GLfloat orchid[];
	static const GLfloat peru[];
	static const GLfloat royalblue[];
	static const GLfloat silver[];
	static const GLfloat tan[];
	static const GLfloat white[];
 
	static const GLfloat azure[];
	static const GLfloat brown[];
	static const GLfloat comsilk[];
	static const GLfloat darkgreen[];
	static const GLfloat darksalmon[];
	static const GLfloat deepskyblue[];
	static const GLfloat gainsboro[];
	static const GLfloat honeydew[];
	static const GLfloat lavenderblush[];
	static const GLfloat lightgreen[];
	static const GLfloat lightsteelblue[];
	static const GLfloat mediumauqamrine[];
	static const GLfloat mediumturquoise[];
	static const GLfloat navy[];
	static const GLfloat palegoldenrod[];
	static const GLfloat pink[];
	static const GLfloat saddlebrown[];
	static const GLfloat skyblue[];
	static const GLfloat teal[];
	static const GLfloat whitesmoke[];
 
	static const GLfloat beige[];
	static const GLfloat burlywood[];
	static const GLfloat crimson[];
	static const GLfloat darkkhaki[];
	static const GLfloat darkseagreen[];
	static const GLfloat dimgray[];
	static const GLfloat ghostwhite[];
	static const GLfloat hotpink[];
	static const GLfloat lawngreen[];
	static const GLfloat lightgrey[];
	static const GLfloat lightyellow[];
	static const GLfloat mediumblue[];
	static const GLfloat mediumvioletred[];
	static const GLfloat oldlace[];
	static const GLfloat palegreen[];
	static const GLfloat plum[];
	static const GLfloat salmon[];
	static const GLfloat slateblue[];
	static const GLfloat thistle[];
	static const GLfloat yellow[];
 
	static const GLfloat bisque[];
	static const GLfloat cadetblue[];
	static const GLfloat cyan[];
	static const GLfloat darkmagenta[];
	static const GLfloat darkslateblue[];
	static const GLfloat dodgerblue[];
	static const GLfloat gold[];
	static const GLfloat indianred[];
	static const GLfloat lemonchiffon[];
	static const GLfloat lightpink[];
	static const GLfloat lime[];
	static const GLfloat mediumorchid[];
	static const GLfloat midnightblue[];
	static const GLfloat olive[];
	static const GLfloat paleturquoise[];
	static const GLfloat powderblue[];
	static const GLfloat sandybrown[];
	static const GLfloat slategray[];
	static const GLfloat tomato[];
	static const GLfloat yellowgreen[];
};

예전에 만들어둔 색상 테이블...

혹시 필요한분 계실까봐 공유해보아요

세벌의 이미지

글 제목을 조금만 신경 써 주시면 좋겠습니다.
https://wiki.kldp.org/wiki.php/DocbookSgml/Beginner_QA-KLDP#AEN70
제목은 질문 내용을 요약하라.
님께서 쓴 글이 질문은 아닙니다 그러나 "제목은 질문 내용을 요약하라."는 질문 뿐 아니라 일반 글에도 적용되겠지요?

lalupo20의 이미지

.