diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-25 20:13:03 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-25 20:13:03 (GMT) |
commit | 4cbdbf9827d2576f8672a6c167261b4b27682920 (patch) | |
tree | b9d413ac635585ceb3abc53b83a48d66ac5e20f3 /src/colormap.h | |
parent | ed02aa85ef0ec0a1adc9aa34f6e1a9f7715a4704 (diff) |
Ported remaining color handling away from Qt
Diffstat (limited to 'src/colormap.h')
-rw-r--r-- | src/colormap.h | 297 |
1 files changed, 149 insertions, 148 deletions
diff --git a/src/colormap.h b/src/colormap.h index 343875c..7c0652c 100644 --- a/src/colormap.h +++ b/src/colormap.h @@ -1,148 +1,149 @@ -boost::unordered_map<std::string, Vector3f> ColorModule::colormap = map_list_of - ("aliceblue", Vector3f(240, 248, 255)) - ("antiquewhite", Vector3f(250, 235, 215)) - ("aqua", Vector3f(0, 255, 255)) - ("aquamarine", Vector3f(127, 255, 212)) - ("azure", Vector3f(240, 255, 255)) - ("beige", Vector3f(245, 245, 220)) - ("bisque", Vector3f(255, 228, 196)) - ("black", Vector3f(0, 0, 0)) - ("blanchedalmond", Vector3f(255, 235, 205)) - ("blue", Vector3f(0, 0, 255)) - ("blueviolet", Vector3f(138, 43, 226)) - ("brown", Vector3f(165, 42, 42)) - ("burlywood", Vector3f(222, 184, 135)) - ("cadetblue", Vector3f(95, 158, 160)) - ("chartreuse", Vector3f(127, 255, 0)) - ("chocolate", Vector3f(210, 105, 30)) - ("coral", Vector3f(255, 127, 80)) - ("cornflowerblue", Vector3f(100, 149, 237)) - ("cornsilk", Vector3f(255, 248, 220)) - ("crimson", Vector3f(220, 20, 60)) - ("cyan", Vector3f(0, 255, 255)) - ("darkblue", Vector3f(0, 0, 139)) - ("darkcyan", Vector3f(0, 139, 139)) - ("darkgoldenrod", Vector3f(184, 134, 11)) - ("darkgray", Vector3f(169, 169, 169)) - ("darkgreen", Vector3f(0, 100, 0)) - ("darkgrey", Vector3f(169, 169, 169)) - ("darkkhaki", Vector3f(189, 183, 107)) - ("darkmagenta", Vector3f(139, 0, 139)) - ("darkolivegreen", Vector3f(85, 107, 47)) - ("darkorange", Vector3f(255, 140, 0)) - ("darkorchid", Vector3f(153, 50, 204)) - ("darkred", Vector3f(139, 0, 0)) - ("darksalmon", Vector3f(233, 150, 122)) - ("darkseagreen", Vector3f(143, 188, 143)) - ("darkslateblue", Vector3f(72, 61, 139)) - ("darkslategray", Vector3f(47, 79, 79)) - ("darkslategrey", Vector3f(47, 79, 79)) - ("darkturquoise", Vector3f(0, 206, 209)) - ("darkviolet", Vector3f(148, 0, 211)) - ("deeppink", Vector3f(255, 20, 147)) - ("deepskyblue", Vector3f(0, 191, 255)) - ("dimgray", Vector3f(105, 105, 105)) - ("dimgrey", Vector3f(105, 105, 105)) - ("dodgerblue", Vector3f(30, 144, 255)) - ("firebrick", Vector3f(178, 34, 34)) - ("floralwhite", Vector3f(255, 250, 240)) - ("forestgreen", Vector3f(34, 139, 34)) - ("fuchsia", Vector3f(255, 0, 255)) - ("gainsboro", Vector3f(220, 220, 220)) - ("ghostwhite", Vector3f(248, 248, 255)) - ("gold", Vector3f(255, 215, 0)) - ("goldenrod", Vector3f(218, 165, 32)) - ("gray", Vector3f(128, 128, 128)) - ("green", Vector3f(0, 128, 0)) - ("greenyellow", Vector3f(173, 255, 47)) - ("grey", Vector3f(128, 128, 128)) - ("honeydew", Vector3f(240, 255, 240)) - ("hotpink", Vector3f(255, 105, 180)) - ("indianred", Vector3f(205, 92, 92)) - ("indigo", Vector3f(75, 0, 130)) - ("ivory", Vector3f(255, 255, 240)) - ("khaki", Vector3f(240, 230, 140)) - ("lavender", Vector3f(230, 230, 250)) - ("lavenderblush", Vector3f(255, 240, 245)) - ("lawngreen", Vector3f(124, 252, 0)) - ("lemonchiffon", Vector3f(255, 250, 205)) - ("lightblue", Vector3f(173, 216, 230)) - ("lightcoral", Vector3f(240, 128, 128)) - ("lightcyan", Vector3f(224, 255, 255)) - ("lightgoldenrodyellow", Vector3f(250, 250, 210)) - ("lightgray", Vector3f(211, 211, 211)) - ("lightgreen", Vector3f(144, 238, 144)) - ("lightgrey", Vector3f(211, 211, 211)) - ("lightpink", Vector3f(255, 182, 193)) - ("lightsalmon", Vector3f(255, 160, 122)) - ("lightseagreen", Vector3f(32, 178, 170)) - ("lightskyblue", Vector3f(135, 206, 250)) - ("lightslategray", Vector3f(119, 136, 153)) - ("lightslategrey", Vector3f(119, 136, 153)) - ("lightsteelblue", Vector3f(176, 196, 222)) - ("lightyellow", Vector3f(255, 255, 224)) - ("lime", Vector3f(0, 255, 0)) - ("limegreen", Vector3f(50, 205, 50)) - ("linen", Vector3f(250, 240, 230)) - ("magenta", Vector3f(255, 0, 255)) - ("maroon", Vector3f(128, 0, 0)) - ("mediumaquamarine", Vector3f(102, 205, 170)) - ("mediumblue", Vector3f(0, 0, 205)) - ("mediumorchid", Vector3f(186, 85, 211)) - ("mediumpurple", Vector3f(147, 112, 219)) - ("mediumseagreen", Vector3f(60, 179, 113)) - ("mediumslateblue", Vector3f(123, 104, 238)) - ("mediumspringgreen", Vector3f(0, 250, 154)) - ("mediumturquoise", Vector3f(72, 209, 204)) - ("mediumvioletred", Vector3f(199, 21, 133)) - ("midnightblue", Vector3f(25, 25, 112)) - ("mintcream", Vector3f(245, 255, 250)) - ("mistyrose", Vector3f(255, 228, 225)) - ("moccasin", Vector3f(255, 228, 181)) - ("navajowhite", Vector3f(255, 222, 173)) - ("navy", Vector3f(0, 0, 128)) - ("oldlace", Vector3f(253, 245, 230)) - ("olive", Vector3f(128, 128, 0)) - ("olivedrab", Vector3f(107, 142, 35)) - ("orange", Vector3f(255, 165, 0)) - ("orangered", Vector3f(255, 69, 0)) - ("orchid", Vector3f(218, 112, 214)) - ("palegoldenrod", Vector3f(238, 232, 170)) - ("palegreen", Vector3f(152, 251, 152)) - ("paleturquoise", Vector3f(175, 238, 238)) - ("palevioletred", Vector3f(219, 112, 147)) - ("papayawhip", Vector3f(255, 239, 213)) - ("peachpuff", Vector3f(255, 218, 185)) - ("peru", Vector3f(205, 133, 63)) - ("pink", Vector3f(255, 192, 203)) - ("plum", Vector3f(221, 160, 221)) - ("powderblue", Vector3f(176, 224, 230)) - ("purple", Vector3f(128, 0, 128)) - ("red", Vector3f(255, 0, 0)) - ("rosybrown", Vector3f(188, 143, 143)) - ("royalblue", Vector3f(65, 105, 225)) - ("saddlebrown", Vector3f(139, 69, 19)) - ("salmon", Vector3f(250, 128, 114)) - ("sandybrown", Vector3f(244, 164, 96)) - ("seagreen", Vector3f(46, 139, 87)) - ("seashell", Vector3f(255, 245, 238)) - ("sienna", Vector3f(160, 82, 45)) - ("silver", Vector3f(192, 192, 192)) - ("skyblue", Vector3f(135, 206, 235)) - ("slateblue", Vector3f(106, 90, 205)) - ("slategray", Vector3f(112, 128, 144)) - ("slategrey", Vector3f(112, 128, 144)) - ("snow", Vector3f(255, 250, 250)) - ("springgreen", Vector3f(0, 255, 127)) - ("steelblue", Vector3f(70, 130, 180)) - ("tan", Vector3f(210, 180, 140)) - ("teal", Vector3f(0, 128, 128)) - ("thistle", Vector3f(216, 191, 216)) - ("tomato", Vector3f(255, 99, 71)) - ("turquoise", Vector3f(64, 224, 208)) - ("violet", Vector3f(238, 130, 238)) - ("wheat", Vector3f(245, 222, 179)) - ("white", Vector3f(255, 255, 255)) - ("whitesmoke", Vector3f(245, 245, 245)) - ("yellow", Vector3f(255, 255, 0)) - ("yellowgreen", Vector3f(154, 205, 50)); +boost::unordered_map<std::string, Color4f> ColorModule::colormap = map_list_of + ("aliceblue", Color4f(240, 248, 255)) + ("antiquewhite", Color4f(250, 235, 215)) + ("aqua", Color4f(0, 255, 255)) + ("aquamarine", Color4f(127, 255, 212)) + ("azure", Color4f(240, 255, 255)) + ("beige", Color4f(245, 245, 220)) + ("bisque", Color4f(255, 228, 196)) + ("black", Color4f(0, 0, 0)) + ("blanchedalmond", Color4f(255, 235, 205)) + ("blue", Color4f(0, 0, 255)) + ("blueviolet", Color4f(138, 43, 226)) + ("brown", Color4f(165, 42, 42)) + ("burlywood", Color4f(222, 184, 135)) + ("cadetblue", Color4f(95, 158, 160)) + ("chartreuse", Color4f(127, 255, 0)) + ("chocolate", Color4f(210, 105, 30)) + ("coral", Color4f(255, 127, 80)) + ("cornflowerblue", Color4f(100, 149, 237)) + ("cornsilk", Color4f(255, 248, 220)) + ("crimson", Color4f(220, 20, 60)) + ("cyan", Color4f(0, 255, 255)) + ("darkblue", Color4f(0, 0, 139)) + ("darkcyan", Color4f(0, 139, 139)) + ("darkgoldenrod", Color4f(184, 134, 11)) + ("darkgray", Color4f(169, 169, 169)) + ("darkgreen", Color4f(0, 100, 0)) + ("darkgrey", Color4f(169, 169, 169)) + ("darkkhaki", Color4f(189, 183, 107)) + ("darkmagenta", Color4f(139, 0, 139)) + ("darkolivegreen", Color4f(85, 107, 47)) + ("darkorange", Color4f(255, 140, 0)) + ("darkorchid", Color4f(153, 50, 204)) + ("darkred", Color4f(139, 0, 0)) + ("darksalmon", Color4f(233, 150, 122)) + ("darkseagreen", Color4f(143, 188, 143)) + ("darkslateblue", Color4f(72, 61, 139)) + ("darkslategray", Color4f(47, 79, 79)) + ("darkslategrey", Color4f(47, 79, 79)) + ("darkturquoise", Color4f(0, 206, 209)) + ("darkviolet", Color4f(148, 0, 211)) + ("deeppink", Color4f(255, 20, 147)) + ("deepskyblue", Color4f(0, 191, 255)) + ("dimgray", Color4f(105, 105, 105)) + ("dimgrey", Color4f(105, 105, 105)) + ("dodgerblue", Color4f(30, 144, 255)) + ("firebrick", Color4f(178, 34, 34)) + ("floralwhite", Color4f(255, 250, 240)) + ("forestgreen", Color4f(34, 139, 34)) + ("fuchsia", Color4f(255, 0, 255)) + ("gainsboro", Color4f(220, 220, 220)) + ("ghostwhite", Color4f(248, 248, 255)) + ("gold", Color4f(255, 215, 0)) + ("goldenrod", Color4f(218, 165, 32)) + ("gray", Color4f(128, 128, 128)) + ("green", Color4f(0, 128, 0)) + ("greenyellow", Color4f(173, 255, 47)) + ("grey", Color4f(128, 128, 128)) + ("honeydew", Color4f(240, 255, 240)) + ("hotpink", Color4f(255, 105, 180)) + ("indianred", Color4f(205, 92, 92)) + ("indigo", Color4f(75, 0, 130)) + ("ivory", Color4f(255, 255, 240)) + ("khaki", Color4f(240, 230, 140)) + ("lavender", Color4f(230, 230, 250)) + ("lavenderblush", Color4f(255, 240, 245)) + ("lawngreen", Color4f(124, 252, 0)) + ("lemonchiffon", Color4f(255, 250, 205)) + ("lightblue", Color4f(173, 216, 230)) + ("lightcoral", Color4f(240, 128, 128)) + ("lightcyan", Color4f(224, 255, 255)) + ("lightgoldenrodyellow", Color4f(250, 250, 210)) + ("lightgray", Color4f(211, 211, 211)) + ("lightgreen", Color4f(144, 238, 144)) + ("lightgrey", Color4f(211, 211, 211)) + ("lightpink", Color4f(255, 182, 193)) + ("lightsalmon", Color4f(255, 160, 122)) + ("lightseagreen", Color4f(32, 178, 170)) + ("lightskyblue", Color4f(135, 206, 250)) + ("lightslategray", Color4f(119, 136, 153)) + ("lightslategrey", Color4f(119, 136, 153)) + ("lightsteelblue", Color4f(176, 196, 222)) + ("lightyellow", Color4f(255, 255, 224)) + ("lime", Color4f(0, 255, 0)) + ("limegreen", Color4f(50, 205, 50)) + ("linen", Color4f(250, 240, 230)) + ("magenta", Color4f(255, 0, 255)) + ("maroon", Color4f(128, 0, 0)) + ("mediumaquamarine", Color4f(102, 205, 170)) + ("mediumblue", Color4f(0, 0, 205)) + ("mediumorchid", Color4f(186, 85, 211)) + ("mediumpurple", Color4f(147, 112, 219)) + ("mediumseagreen", Color4f(60, 179, 113)) + ("mediumslateblue", Color4f(123, 104, 238)) + ("mediumspringgreen", Color4f(0, 250, 154)) + ("mediumturquoise", Color4f(72, 209, 204)) + ("mediumvioletred", Color4f(199, 21, 133)) + ("midnightblue", Color4f(25, 25, 112)) + ("mintcream", Color4f(245, 255, 250)) + ("mistyrose", Color4f(255, 228, 225)) + ("moccasin", Color4f(255, 228, 181)) + ("navajowhite", Color4f(255, 222, 173)) + ("navy", Color4f(0, 0, 128)) + ("oldlace", Color4f(253, 245, 230)) + ("olive", Color4f(128, 128, 0)) + ("olivedrab", Color4f(107, 142, 35)) + ("orange", Color4f(255, 165, 0)) + ("orangered", Color4f(255, 69, 0)) + ("orchid", Color4f(218, 112, 214)) + ("palegoldenrod", Color4f(238, 232, 170)) + ("palegreen", Color4f(152, 251, 152)) + ("paleturquoise", Color4f(175, 238, 238)) + ("palevioletred", Color4f(219, 112, 147)) + ("papayawhip", Color4f(255, 239, 213)) + ("peachpuff", Color4f(255, 218, 185)) + ("peru", Color4f(205, 133, 63)) + ("pink", Color4f(255, 192, 203)) + ("plum", Color4f(221, 160, 221)) + ("powderblue", Color4f(176, 224, 230)) + ("purple", Color4f(128, 0, 128)) + ("red", Color4f(255, 0, 0)) + ("rosybrown", Color4f(188, 143, 143)) + ("royalblue", Color4f(65, 105, 225)) + ("saddlebrown", Color4f(139, 69, 19)) + ("salmon", Color4f(250, 128, 114)) + ("sandybrown", Color4f(244, 164, 96)) + ("seagreen", Color4f(46, 139, 87)) + ("seashell", Color4f(255, 245, 238)) + ("sienna", Color4f(160, 82, 45)) + ("silver", Color4f(192, 192, 192)) + ("skyblue", Color4f(135, 206, 235)) + ("slateblue", Color4f(106, 90, 205)) + ("slategray", Color4f(112, 128, 144)) + ("slategrey", Color4f(112, 128, 144)) + ("snow", Color4f(255, 250, 250)) + ("springgreen", Color4f(0, 255, 127)) + ("steelblue", Color4f(70, 130, 180)) + ("tan", Color4f(210, 180, 140)) + ("teal", Color4f(0, 128, 128)) + ("thistle", Color4f(216, 191, 216)) + ("tomato", Color4f(255, 99, 71)) + ("transparent", Color4f(0, 0, 0, 0)) + ("turquoise", Color4f(64, 224, 208)) + ("violet", Color4f(238, 130, 238)) + ("wheat", Color4f(245, 222, 179)) + ("white", Color4f(255, 255, 255)) + ("whitesmoke", Color4f(245, 245, 245)) + ("yellow", Color4f(255, 255, 0)) + ("yellowgreen", Color4f(154, 205, 50)); |