|
Packit Service |
7770af |
#include "sass.hpp"
|
|
Packit Service |
7770af |
#include "ast.hpp"
|
|
Packit Service |
7770af |
#include "color_maps.hpp"
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
namespace Sass {
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
namespace ColorNames
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
const char aliceblue [] = "aliceblue";
|
|
Packit Service |
7770af |
const char antiquewhite [] = "antiquewhite";
|
|
Packit Service |
7770af |
const char cyan [] = "cyan";
|
|
Packit Service |
7770af |
const char aqua [] = "aqua";
|
|
Packit Service |
7770af |
const char aquamarine [] = "aquamarine";
|
|
Packit Service |
7770af |
const char azure [] = "azure";
|
|
Packit Service |
7770af |
const char beige [] = "beige";
|
|
Packit Service |
7770af |
const char bisque [] = "bisque";
|
|
Packit Service |
7770af |
const char black [] = "black";
|
|
Packit Service |
7770af |
const char blanchedalmond [] = "blanchedalmond";
|
|
Packit Service |
7770af |
const char blue [] = "blue";
|
|
Packit Service |
7770af |
const char blueviolet [] = "blueviolet";
|
|
Packit Service |
7770af |
const char brown [] = "brown";
|
|
Packit Service |
7770af |
const char burlywood [] = "burlywood";
|
|
Packit Service |
7770af |
const char cadetblue [] = "cadetblue";
|
|
Packit Service |
7770af |
const char chartreuse [] = "chartreuse";
|
|
Packit Service |
7770af |
const char chocolate [] = "chocolate";
|
|
Packit Service |
7770af |
const char coral [] = "coral";
|
|
Packit Service |
7770af |
const char cornflowerblue [] = "cornflowerblue";
|
|
Packit Service |
7770af |
const char cornsilk [] = "cornsilk";
|
|
Packit Service |
7770af |
const char crimson [] = "crimson";
|
|
Packit Service |
7770af |
const char darkblue [] = "darkblue";
|
|
Packit Service |
7770af |
const char darkcyan [] = "darkcyan";
|
|
Packit Service |
7770af |
const char darkgoldenrod [] = "darkgoldenrod";
|
|
Packit Service |
7770af |
const char darkgray [] = "darkgray";
|
|
Packit Service |
7770af |
const char darkgrey [] = "darkgrey";
|
|
Packit Service |
7770af |
const char darkgreen [] = "darkgreen";
|
|
Packit Service |
7770af |
const char darkkhaki [] = "darkkhaki";
|
|
Packit Service |
7770af |
const char darkmagenta [] = "darkmagenta";
|
|
Packit Service |
7770af |
const char darkolivegreen [] = "darkolivegreen";
|
|
Packit Service |
7770af |
const char darkorange [] = "darkorange";
|
|
Packit Service |
7770af |
const char darkorchid [] = "darkorchid";
|
|
Packit Service |
7770af |
const char darkred [] = "darkred";
|
|
Packit Service |
7770af |
const char darksalmon [] = "darksalmon";
|
|
Packit Service |
7770af |
const char darkseagreen [] = "darkseagreen";
|
|
Packit Service |
7770af |
const char darkslateblue [] = "darkslateblue";
|
|
Packit Service |
7770af |
const char darkslategray [] = "darkslategray";
|
|
Packit Service |
7770af |
const char darkslategrey [] = "darkslategrey";
|
|
Packit Service |
7770af |
const char darkturquoise [] = "darkturquoise";
|
|
Packit Service |
7770af |
const char darkviolet [] = "darkviolet";
|
|
Packit Service |
7770af |
const char deeppink [] = "deeppink";
|
|
Packit Service |
7770af |
const char deepskyblue [] = "deepskyblue";
|
|
Packit Service |
7770af |
const char dimgray [] = "dimgray";
|
|
Packit Service |
7770af |
const char dimgrey [] = "dimgrey";
|
|
Packit Service |
7770af |
const char dodgerblue [] = "dodgerblue";
|
|
Packit Service |
7770af |
const char firebrick [] = "firebrick";
|
|
Packit Service |
7770af |
const char floralwhite [] = "floralwhite";
|
|
Packit Service |
7770af |
const char forestgreen [] = "forestgreen";
|
|
Packit Service |
7770af |
const char magenta [] = "magenta";
|
|
Packit Service |
7770af |
const char fuchsia [] = "fuchsia";
|
|
Packit Service |
7770af |
const char gainsboro [] = "gainsboro";
|
|
Packit Service |
7770af |
const char ghostwhite [] = "ghostwhite";
|
|
Packit Service |
7770af |
const char gold [] = "gold";
|
|
Packit Service |
7770af |
const char goldenrod [] = "goldenrod";
|
|
Packit Service |
7770af |
const char gray [] = "gray";
|
|
Packit Service |
7770af |
const char grey [] = "grey";
|
|
Packit Service |
7770af |
const char green [] = "green";
|
|
Packit Service |
7770af |
const char greenyellow [] = "greenyellow";
|
|
Packit Service |
7770af |
const char honeydew [] = "honeydew";
|
|
Packit Service |
7770af |
const char hotpink [] = "hotpink";
|
|
Packit Service |
7770af |
const char indianred [] = "indianred";
|
|
Packit Service |
7770af |
const char indigo [] = "indigo";
|
|
Packit Service |
7770af |
const char ivory [] = "ivory";
|
|
Packit Service |
7770af |
const char khaki [] = "khaki";
|
|
Packit Service |
7770af |
const char lavender [] = "lavender";
|
|
Packit Service |
7770af |
const char lavenderblush [] = "lavenderblush";
|
|
Packit Service |
7770af |
const char lawngreen [] = "lawngreen";
|
|
Packit Service |
7770af |
const char lemonchiffon [] = "lemonchiffon";
|
|
Packit Service |
7770af |
const char lightblue [] = "lightblue";
|
|
Packit Service |
7770af |
const char lightcoral [] = "lightcoral";
|
|
Packit Service |
7770af |
const char lightcyan [] = "lightcyan";
|
|
Packit Service |
7770af |
const char lightgoldenrodyellow [] = "lightgoldenrodyellow";
|
|
Packit Service |
7770af |
const char lightgray [] = "lightgray";
|
|
Packit Service |
7770af |
const char lightgrey [] = "lightgrey";
|
|
Packit Service |
7770af |
const char lightgreen [] = "lightgreen";
|
|
Packit Service |
7770af |
const char lightpink [] = "lightpink";
|
|
Packit Service |
7770af |
const char lightsalmon [] = "lightsalmon";
|
|
Packit Service |
7770af |
const char lightseagreen [] = "lightseagreen";
|
|
Packit Service |
7770af |
const char lightskyblue [] = "lightskyblue";
|
|
Packit Service |
7770af |
const char lightslategray [] = "lightslategray";
|
|
Packit Service |
7770af |
const char lightslategrey [] = "lightslategrey";
|
|
Packit Service |
7770af |
const char lightsteelblue [] = "lightsteelblue";
|
|
Packit Service |
7770af |
const char lightyellow [] = "lightyellow";
|
|
Packit Service |
7770af |
const char lime [] = "lime";
|
|
Packit Service |
7770af |
const char limegreen [] = "limegreen";
|
|
Packit Service |
7770af |
const char linen [] = "linen";
|
|
Packit Service |
7770af |
const char maroon [] = "maroon";
|
|
Packit Service |
7770af |
const char mediumaquamarine [] = "mediumaquamarine";
|
|
Packit Service |
7770af |
const char mediumblue [] = "mediumblue";
|
|
Packit Service |
7770af |
const char mediumorchid [] = "mediumorchid";
|
|
Packit Service |
7770af |
const char mediumpurple [] = "mediumpurple";
|
|
Packit Service |
7770af |
const char mediumseagreen [] = "mediumseagreen";
|
|
Packit Service |
7770af |
const char mediumslateblue [] = "mediumslateblue";
|
|
Packit Service |
7770af |
const char mediumspringgreen [] = "mediumspringgreen";
|
|
Packit Service |
7770af |
const char mediumturquoise [] = "mediumturquoise";
|
|
Packit Service |
7770af |
const char mediumvioletred [] = "mediumvioletred";
|
|
Packit Service |
7770af |
const char midnightblue [] = "midnightblue";
|
|
Packit Service |
7770af |
const char mintcream [] = "mintcream";
|
|
Packit Service |
7770af |
const char mistyrose [] = "mistyrose";
|
|
Packit Service |
7770af |
const char moccasin [] = "moccasin";
|
|
Packit Service |
7770af |
const char navajowhite [] = "navajowhite";
|
|
Packit Service |
7770af |
const char navy [] = "navy";
|
|
Packit Service |
7770af |
const char oldlace [] = "oldlace";
|
|
Packit Service |
7770af |
const char olive [] = "olive";
|
|
Packit Service |
7770af |
const char olivedrab [] = "olivedrab";
|
|
Packit Service |
7770af |
const char orange [] = "orange";
|
|
Packit Service |
7770af |
const char orangered [] = "orangered";
|
|
Packit Service |
7770af |
const char orchid [] = "orchid";
|
|
Packit Service |
7770af |
const char palegoldenrod [] = "palegoldenrod";
|
|
Packit Service |
7770af |
const char palegreen [] = "palegreen";
|
|
Packit Service |
7770af |
const char paleturquoise [] = "paleturquoise";
|
|
Packit Service |
7770af |
const char palevioletred [] = "palevioletred";
|
|
Packit Service |
7770af |
const char papayawhip [] = "papayawhip";
|
|
Packit Service |
7770af |
const char peachpuff [] = "peachpuff";
|
|
Packit Service |
7770af |
const char peru [] = "peru";
|
|
Packit Service |
7770af |
const char pink [] = "pink";
|
|
Packit Service |
7770af |
const char plum [] = "plum";
|
|
Packit Service |
7770af |
const char powderblue [] = "powderblue";
|
|
Packit Service |
7770af |
const char purple [] = "purple";
|
|
Packit Service |
7770af |
const char red [] = "red";
|
|
Packit Service |
7770af |
const char rosybrown [] = "rosybrown";
|
|
Packit Service |
7770af |
const char royalblue [] = "royalblue";
|
|
Packit Service |
7770af |
const char saddlebrown [] = "saddlebrown";
|
|
Packit Service |
7770af |
const char salmon [] = "salmon";
|
|
Packit Service |
7770af |
const char sandybrown [] = "sandybrown";
|
|
Packit Service |
7770af |
const char seagreen [] = "seagreen";
|
|
Packit Service |
7770af |
const char seashell [] = "seashell";
|
|
Packit Service |
7770af |
const char sienna [] = "sienna";
|
|
Packit Service |
7770af |
const char silver [] = "silver";
|
|
Packit Service |
7770af |
const char skyblue [] = "skyblue";
|
|
Packit Service |
7770af |
const char slateblue [] = "slateblue";
|
|
Packit Service |
7770af |
const char slategray [] = "slategray";
|
|
Packit Service |
7770af |
const char slategrey [] = "slategrey";
|
|
Packit Service |
7770af |
const char snow [] = "snow";
|
|
Packit Service |
7770af |
const char springgreen [] = "springgreen";
|
|
Packit Service |
7770af |
const char steelblue [] = "steelblue";
|
|
Packit Service |
7770af |
const char tan [] = "tan";
|
|
Packit Service |
7770af |
const char teal [] = "teal";
|
|
Packit Service |
7770af |
const char thistle [] = "thistle";
|
|
Packit Service |
7770af |
const char tomato [] = "tomato";
|
|
Packit Service |
7770af |
const char turquoise [] = "turquoise";
|
|
Packit Service |
7770af |
const char violet [] = "violet";
|
|
Packit Service |
7770af |
const char wheat [] = "wheat";
|
|
Packit Service |
7770af |
const char white [] = "white";
|
|
Packit Service |
7770af |
const char whitesmoke [] = "whitesmoke";
|
|
Packit Service |
7770af |
const char yellow [] = "yellow";
|
|
Packit Service |
7770af |
const char yellowgreen [] = "yellowgreen";
|
|
Packit Service |
7770af |
const char rebeccapurple [] = "rebeccapurple";
|
|
Packit Service |
7770af |
const char transparent [] = "transparent";
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
namespace Colors {
|
|
Packit Service |
7770af |
const ParserState color_table("[COLOR TABLE]");
|
|
Packit Service |
7770af |
const Color aliceblue(color_table, 240, 248, 255, 1);
|
|
Packit Service |
7770af |
const Color antiquewhite(color_table, 250, 235, 215, 1);
|
|
Packit Service |
7770af |
const Color cyan(color_table, 0, 255, 255, 1);
|
|
Packit Service |
7770af |
const Color aqua(color_table, 0, 255, 255, 1);
|
|
Packit Service |
7770af |
const Color aquamarine(color_table, 127, 255, 212, 1);
|
|
Packit Service |
7770af |
const Color azure(color_table, 240, 255, 255, 1);
|
|
Packit Service |
7770af |
const Color beige(color_table, 245, 245, 220, 1);
|
|
Packit Service |
7770af |
const Color bisque(color_table, 255, 228, 196, 1);
|
|
Packit Service |
7770af |
const Color black(color_table, 0, 0, 0, 1);
|
|
Packit Service |
7770af |
const Color blanchedalmond(color_table, 255, 235, 205, 1);
|
|
Packit Service |
7770af |
const Color blue(color_table, 0, 0, 255, 1);
|
|
Packit Service |
7770af |
const Color blueviolet(color_table, 138, 43, 226, 1);
|
|
Packit Service |
7770af |
const Color brown(color_table, 165, 42, 42, 1);
|
|
Packit Service |
7770af |
const Color burlywood(color_table, 222, 184, 135, 1);
|
|
Packit Service |
7770af |
const Color cadetblue(color_table, 95, 158, 160, 1);
|
|
Packit Service |
7770af |
const Color chartreuse(color_table, 127, 255, 0, 1);
|
|
Packit Service |
7770af |
const Color chocolate(color_table, 210, 105, 30, 1);
|
|
Packit Service |
7770af |
const Color coral(color_table, 255, 127, 80, 1);
|
|
Packit Service |
7770af |
const Color cornflowerblue(color_table, 100, 149, 237, 1);
|
|
Packit Service |
7770af |
const Color cornsilk(color_table, 255, 248, 220, 1);
|
|
Packit Service |
7770af |
const Color crimson(color_table, 220, 20, 60, 1);
|
|
Packit Service |
7770af |
const Color darkblue(color_table, 0, 0, 139, 1);
|
|
Packit Service |
7770af |
const Color darkcyan(color_table, 0, 139, 139, 1);
|
|
Packit Service |
7770af |
const Color darkgoldenrod(color_table, 184, 134, 11, 1);
|
|
Packit Service |
7770af |
const Color darkgray(color_table, 169, 169, 169, 1);
|
|
Packit Service |
7770af |
const Color darkgrey(color_table, 169, 169, 169, 1);
|
|
Packit Service |
7770af |
const Color darkgreen(color_table, 0, 100, 0, 1);
|
|
Packit Service |
7770af |
const Color darkkhaki(color_table, 189, 183, 107, 1);
|
|
Packit Service |
7770af |
const Color darkmagenta(color_table, 139, 0, 139, 1);
|
|
Packit Service |
7770af |
const Color darkolivegreen(color_table, 85, 107, 47, 1);
|
|
Packit Service |
7770af |
const Color darkorange(color_table, 255, 140, 0, 1);
|
|
Packit Service |
7770af |
const Color darkorchid(color_table, 153, 50, 204, 1);
|
|
Packit Service |
7770af |
const Color darkred(color_table, 139, 0, 0, 1);
|
|
Packit Service |
7770af |
const Color darksalmon(color_table, 233, 150, 122, 1);
|
|
Packit Service |
7770af |
const Color darkseagreen(color_table, 143, 188, 143, 1);
|
|
Packit Service |
7770af |
const Color darkslateblue(color_table, 72, 61, 139, 1);
|
|
Packit Service |
7770af |
const Color darkslategray(color_table, 47, 79, 79, 1);
|
|
Packit Service |
7770af |
const Color darkslategrey(color_table, 47, 79, 79, 1);
|
|
Packit Service |
7770af |
const Color darkturquoise(color_table, 0, 206, 209, 1);
|
|
Packit Service |
7770af |
const Color darkviolet(color_table, 148, 0, 211, 1);
|
|
Packit Service |
7770af |
const Color deeppink(color_table, 255, 20, 147, 1);
|
|
Packit Service |
7770af |
const Color deepskyblue(color_table, 0, 191, 255, 1);
|
|
Packit Service |
7770af |
const Color dimgray(color_table, 105, 105, 105, 1);
|
|
Packit Service |
7770af |
const Color dimgrey(color_table, 105, 105, 105, 1);
|
|
Packit Service |
7770af |
const Color dodgerblue(color_table, 30, 144, 255, 1);
|
|
Packit Service |
7770af |
const Color firebrick(color_table, 178, 34, 34, 1);
|
|
Packit Service |
7770af |
const Color floralwhite(color_table, 255, 250, 240, 1);
|
|
Packit Service |
7770af |
const Color forestgreen(color_table, 34, 139, 34, 1);
|
|
Packit Service |
7770af |
const Color magenta(color_table, 255, 0, 255, 1);
|
|
Packit Service |
7770af |
const Color fuchsia(color_table, 255, 0, 255, 1);
|
|
Packit Service |
7770af |
const Color gainsboro(color_table, 220, 220, 220, 1);
|
|
Packit Service |
7770af |
const Color ghostwhite(color_table, 248, 248, 255, 1);
|
|
Packit Service |
7770af |
const Color gold(color_table, 255, 215, 0, 1);
|
|
Packit Service |
7770af |
const Color goldenrod(color_table, 218, 165, 32, 1);
|
|
Packit Service |
7770af |
const Color gray(color_table, 128, 128, 128, 1);
|
|
Packit Service |
7770af |
const Color grey(color_table, 128, 128, 128, 1);
|
|
Packit Service |
7770af |
const Color green(color_table, 0, 128, 0, 1);
|
|
Packit Service |
7770af |
const Color greenyellow(color_table, 173, 255, 47, 1);
|
|
Packit Service |
7770af |
const Color honeydew(color_table, 240, 255, 240, 1);
|
|
Packit Service |
7770af |
const Color hotpink(color_table, 255, 105, 180, 1);
|
|
Packit Service |
7770af |
const Color indianred(color_table, 205, 92, 92, 1);
|
|
Packit Service |
7770af |
const Color indigo(color_table, 75, 0, 130, 1);
|
|
Packit Service |
7770af |
const Color ivory(color_table, 255, 255, 240, 1);
|
|
Packit Service |
7770af |
const Color khaki(color_table, 240, 230, 140, 1);
|
|
Packit Service |
7770af |
const Color lavender(color_table, 230, 230, 250, 1);
|
|
Packit Service |
7770af |
const Color lavenderblush(color_table, 255, 240, 245, 1);
|
|
Packit Service |
7770af |
const Color lawngreen(color_table, 124, 252, 0, 1);
|
|
Packit Service |
7770af |
const Color lemonchiffon(color_table, 255, 250, 205, 1);
|
|
Packit Service |
7770af |
const Color lightblue(color_table, 173, 216, 230, 1);
|
|
Packit Service |
7770af |
const Color lightcoral(color_table, 240, 128, 128, 1);
|
|
Packit Service |
7770af |
const Color lightcyan(color_table, 224, 255, 255, 1);
|
|
Packit Service |
7770af |
const Color lightgoldenrodyellow(color_table, 250, 250, 210, 1);
|
|
Packit Service |
7770af |
const Color lightgray(color_table, 211, 211, 211, 1);
|
|
Packit Service |
7770af |
const Color lightgrey(color_table, 211, 211, 211, 1);
|
|
Packit Service |
7770af |
const Color lightgreen(color_table, 144, 238, 144, 1);
|
|
Packit Service |
7770af |
const Color lightpink(color_table, 255, 182, 193, 1);
|
|
Packit Service |
7770af |
const Color lightsalmon(color_table, 255, 160, 122, 1);
|
|
Packit Service |
7770af |
const Color lightseagreen(color_table, 32, 178, 170, 1);
|
|
Packit Service |
7770af |
const Color lightskyblue(color_table, 135, 206, 250, 1);
|
|
Packit Service |
7770af |
const Color lightslategray(color_table, 119, 136, 153, 1);
|
|
Packit Service |
7770af |
const Color lightslategrey(color_table, 119, 136, 153, 1);
|
|
Packit Service |
7770af |
const Color lightsteelblue(color_table, 176, 196, 222, 1);
|
|
Packit Service |
7770af |
const Color lightyellow(color_table, 255, 255, 224, 1);
|
|
Packit Service |
7770af |
const Color lime(color_table, 0, 255, 0, 1);
|
|
Packit Service |
7770af |
const Color limegreen(color_table, 50, 205, 50, 1);
|
|
Packit Service |
7770af |
const Color linen(color_table, 250, 240, 230, 1);
|
|
Packit Service |
7770af |
const Color maroon(color_table, 128, 0, 0, 1);
|
|
Packit Service |
7770af |
const Color mediumaquamarine(color_table, 102, 205, 170, 1);
|
|
Packit Service |
7770af |
const Color mediumblue(color_table, 0, 0, 205, 1);
|
|
Packit Service |
7770af |
const Color mediumorchid(color_table, 186, 85, 211, 1);
|
|
Packit Service |
7770af |
const Color mediumpurple(color_table, 147, 112, 219, 1);
|
|
Packit Service |
7770af |
const Color mediumseagreen(color_table, 60, 179, 113, 1);
|
|
Packit Service |
7770af |
const Color mediumslateblue(color_table, 123, 104, 238, 1);
|
|
Packit Service |
7770af |
const Color mediumspringgreen(color_table, 0, 250, 154, 1);
|
|
Packit Service |
7770af |
const Color mediumturquoise(color_table, 72, 209, 204, 1);
|
|
Packit Service |
7770af |
const Color mediumvioletred(color_table, 199, 21, 133, 1);
|
|
Packit Service |
7770af |
const Color midnightblue(color_table, 25, 25, 112, 1);
|
|
Packit Service |
7770af |
const Color mintcream(color_table, 245, 255, 250, 1);
|
|
Packit Service |
7770af |
const Color mistyrose(color_table, 255, 228, 225, 1);
|
|
Packit Service |
7770af |
const Color moccasin(color_table, 255, 228, 181, 1);
|
|
Packit Service |
7770af |
const Color navajowhite(color_table, 255, 222, 173, 1);
|
|
Packit Service |
7770af |
const Color navy(color_table, 0, 0, 128, 1);
|
|
Packit Service |
7770af |
const Color oldlace(color_table, 253, 245, 230, 1);
|
|
Packit Service |
7770af |
const Color olive(color_table, 128, 128, 0, 1);
|
|
Packit Service |
7770af |
const Color olivedrab(color_table, 107, 142, 35, 1);
|
|
Packit Service |
7770af |
const Color orange(color_table, 255, 165, 0, 1);
|
|
Packit Service |
7770af |
const Color orangered(color_table, 255, 69, 0, 1);
|
|
Packit Service |
7770af |
const Color orchid(color_table, 218, 112, 214, 1);
|
|
Packit Service |
7770af |
const Color palegoldenrod(color_table, 238, 232, 170, 1);
|
|
Packit Service |
7770af |
const Color palegreen(color_table, 152, 251, 152, 1);
|
|
Packit Service |
7770af |
const Color paleturquoise(color_table, 175, 238, 238, 1);
|
|
Packit Service |
7770af |
const Color palevioletred(color_table, 219, 112, 147, 1);
|
|
Packit Service |
7770af |
const Color papayawhip(color_table, 255, 239, 213, 1);
|
|
Packit Service |
7770af |
const Color peachpuff(color_table, 255, 218, 185, 1);
|
|
Packit Service |
7770af |
const Color peru(color_table, 205, 133, 63, 1);
|
|
Packit Service |
7770af |
const Color pink(color_table, 255, 192, 203, 1);
|
|
Packit Service |
7770af |
const Color plum(color_table, 221, 160, 221, 1);
|
|
Packit Service |
7770af |
const Color powderblue(color_table, 176, 224, 230, 1);
|
|
Packit Service |
7770af |
const Color purple(color_table, 128, 0, 128, 1);
|
|
Packit Service |
7770af |
const Color red(color_table, 255, 0, 0, 1);
|
|
Packit Service |
7770af |
const Color rosybrown(color_table, 188, 143, 143, 1);
|
|
Packit Service |
7770af |
const Color royalblue(color_table, 65, 105, 225, 1);
|
|
Packit Service |
7770af |
const Color saddlebrown(color_table, 139, 69, 19, 1);
|
|
Packit Service |
7770af |
const Color salmon(color_table, 250, 128, 114, 1);
|
|
Packit Service |
7770af |
const Color sandybrown(color_table, 244, 164, 96, 1);
|
|
Packit Service |
7770af |
const Color seagreen(color_table, 46, 139, 87, 1);
|
|
Packit Service |
7770af |
const Color seashell(color_table, 255, 245, 238, 1);
|
|
Packit Service |
7770af |
const Color sienna(color_table, 160, 82, 45, 1);
|
|
Packit Service |
7770af |
const Color silver(color_table, 192, 192, 192, 1);
|
|
Packit Service |
7770af |
const Color skyblue(color_table, 135, 206, 235, 1);
|
|
Packit Service |
7770af |
const Color slateblue(color_table, 106, 90, 205, 1);
|
|
Packit Service |
7770af |
const Color slategray(color_table, 112, 128, 144, 1);
|
|
Packit Service |
7770af |
const Color slategrey(color_table, 112, 128, 144, 1);
|
|
Packit Service |
7770af |
const Color snow(color_table, 255, 250, 250, 1);
|
|
Packit Service |
7770af |
const Color springgreen(color_table, 0, 255, 127, 1);
|
|
Packit Service |
7770af |
const Color steelblue(color_table, 70, 130, 180, 1);
|
|
Packit Service |
7770af |
const Color tan(color_table, 210, 180, 140, 1);
|
|
Packit Service |
7770af |
const Color teal(color_table, 0, 128, 128, 1);
|
|
Packit Service |
7770af |
const Color thistle(color_table, 216, 191, 216, 1);
|
|
Packit Service |
7770af |
const Color tomato(color_table, 255, 99, 71, 1);
|
|
Packit Service |
7770af |
const Color turquoise(color_table, 64, 224, 208, 1);
|
|
Packit Service |
7770af |
const Color violet(color_table, 238, 130, 238, 1);
|
|
Packit Service |
7770af |
const Color wheat(color_table, 245, 222, 179, 1);
|
|
Packit Service |
7770af |
const Color white(color_table, 255, 255, 255, 1);
|
|
Packit Service |
7770af |
const Color whitesmoke(color_table, 245, 245, 245, 1);
|
|
Packit Service |
7770af |
const Color yellow(color_table, 255, 255, 0, 1);
|
|
Packit Service |
7770af |
const Color yellowgreen(color_table, 154, 205, 50, 1);
|
|
Packit Service |
7770af |
const Color rebeccapurple(color_table, 102, 51, 153, 1);
|
|
Packit Service |
7770af |
const Color transparent(color_table, 0, 0, 0, 0);
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
const std::map<const int, const char*> colors_to_names {
|
|
Packit Service |
7770af |
{ 240 * 0x10000 + 248 * 0x100 + 255, ColorNames::aliceblue },
|
|
Packit Service |
7770af |
{ 250 * 0x10000 + 235 * 0x100 + 215, ColorNames::antiquewhite },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 255 * 0x100 + 255, ColorNames::cyan },
|
|
Packit Service |
7770af |
{ 127 * 0x10000 + 255 * 0x100 + 212, ColorNames::aquamarine },
|
|
Packit Service |
7770af |
{ 240 * 0x10000 + 255 * 0x100 + 255, ColorNames::azure },
|
|
Packit Service |
7770af |
{ 245 * 0x10000 + 245 * 0x100 + 220, ColorNames::beige },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 228 * 0x100 + 196, ColorNames::bisque },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 0 * 0x100 + 0, ColorNames::black },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 235 * 0x100 + 205, ColorNames::blanchedalmond },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 0 * 0x100 + 255, ColorNames::blue },
|
|
Packit Service |
7770af |
{ 138 * 0x10000 + 43 * 0x100 + 226, ColorNames::blueviolet },
|
|
Packit Service |
7770af |
{ 165 * 0x10000 + 42 * 0x100 + 42, ColorNames::brown },
|
|
Packit Service |
7770af |
{ 222 * 0x10000 + 184 * 0x100 + 135, ColorNames::burlywood },
|
|
Packit Service |
7770af |
{ 95 * 0x10000 + 158 * 0x100 + 160, ColorNames::cadetblue },
|
|
Packit Service |
7770af |
{ 127 * 0x10000 + 255 * 0x100 + 0, ColorNames::chartreuse },
|
|
Packit Service |
7770af |
{ 210 * 0x10000 + 105 * 0x100 + 30, ColorNames::chocolate },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 127 * 0x100 + 80, ColorNames::coral },
|
|
Packit Service |
7770af |
{ 100 * 0x10000 + 149 * 0x100 + 237, ColorNames::cornflowerblue },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 248 * 0x100 + 220, ColorNames::cornsilk },
|
|
Packit Service |
7770af |
{ 220 * 0x10000 + 20 * 0x100 + 60, ColorNames::crimson },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 0 * 0x100 + 139, ColorNames::darkblue },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 139 * 0x100 + 139, ColorNames::darkcyan },
|
|
Packit Service |
7770af |
{ 184 * 0x10000 + 134 * 0x100 + 11, ColorNames::darkgoldenrod },
|
|
Packit Service |
7770af |
{ 169 * 0x10000 + 169 * 0x100 + 169, ColorNames::darkgray },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 100 * 0x100 + 0, ColorNames::darkgreen },
|
|
Packit Service |
7770af |
{ 189 * 0x10000 + 183 * 0x100 + 107, ColorNames::darkkhaki },
|
|
Packit Service |
7770af |
{ 139 * 0x10000 + 0 * 0x100 + 139, ColorNames::darkmagenta },
|
|
Packit Service |
7770af |
{ 85 * 0x10000 + 107 * 0x100 + 47, ColorNames::darkolivegreen },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 140 * 0x100 + 0, ColorNames::darkorange },
|
|
Packit Service |
7770af |
{ 153 * 0x10000 + 50 * 0x100 + 204, ColorNames::darkorchid },
|
|
Packit Service |
7770af |
{ 139 * 0x10000 + 0 * 0x100 + 0, ColorNames::darkred },
|
|
Packit Service |
7770af |
{ 233 * 0x10000 + 150 * 0x100 + 122, ColorNames::darksalmon },
|
|
Packit Service |
7770af |
{ 143 * 0x10000 + 188 * 0x100 + 143, ColorNames::darkseagreen },
|
|
Packit Service |
7770af |
{ 72 * 0x10000 + 61 * 0x100 + 139, ColorNames::darkslateblue },
|
|
Packit Service |
7770af |
{ 47 * 0x10000 + 79 * 0x100 + 79, ColorNames::darkslategray },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 206 * 0x100 + 209, ColorNames::darkturquoise },
|
|
Packit Service |
7770af |
{ 148 * 0x10000 + 0 * 0x100 + 211, ColorNames::darkviolet },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 20 * 0x100 + 147, ColorNames::deeppink },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 191 * 0x100 + 255, ColorNames::deepskyblue },
|
|
Packit Service |
7770af |
{ 105 * 0x10000 + 105 * 0x100 + 105, ColorNames::dimgray },
|
|
Packit Service |
7770af |
{ 30 * 0x10000 + 144 * 0x100 + 255, ColorNames::dodgerblue },
|
|
Packit Service |
7770af |
{ 178 * 0x10000 + 34 * 0x100 + 34, ColorNames::firebrick },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 250 * 0x100 + 240, ColorNames::floralwhite },
|
|
Packit Service |
7770af |
{ 34 * 0x10000 + 139 * 0x100 + 34, ColorNames::forestgreen },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 0 * 0x100 + 255, ColorNames::magenta },
|
|
Packit Service |
7770af |
{ 220 * 0x10000 + 220 * 0x100 + 220, ColorNames::gainsboro },
|
|
Packit Service |
7770af |
{ 248 * 0x10000 + 248 * 0x100 + 255, ColorNames::ghostwhite },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 215 * 0x100 + 0, ColorNames::gold },
|
|
Packit Service |
7770af |
{ 218 * 0x10000 + 165 * 0x100 + 32, ColorNames::goldenrod },
|
|
Packit Service |
7770af |
{ 128 * 0x10000 + 128 * 0x100 + 128, ColorNames::gray },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 128 * 0x100 + 0, ColorNames::green },
|
|
Packit Service |
7770af |
{ 173 * 0x10000 + 255 * 0x100 + 47, ColorNames::greenyellow },
|
|
Packit Service |
7770af |
{ 240 * 0x10000 + 255 * 0x100 + 240, ColorNames::honeydew },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 105 * 0x100 + 180, ColorNames::hotpink },
|
|
Packit Service |
7770af |
{ 205 * 0x10000 + 92 * 0x100 + 92, ColorNames::indianred },
|
|
Packit Service |
7770af |
{ 75 * 0x10000 + 0 * 0x100 + 130, ColorNames::indigo },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 255 * 0x100 + 240, ColorNames::ivory },
|
|
Packit Service |
7770af |
{ 240 * 0x10000 + 230 * 0x100 + 140, ColorNames::khaki },
|
|
Packit Service |
7770af |
{ 230 * 0x10000 + 230 * 0x100 + 250, ColorNames::lavender },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 240 * 0x100 + 245, ColorNames::lavenderblush },
|
|
Packit Service |
7770af |
{ 124 * 0x10000 + 252 * 0x100 + 0, ColorNames::lawngreen },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 250 * 0x100 + 205, ColorNames::lemonchiffon },
|
|
Packit Service |
7770af |
{ 173 * 0x10000 + 216 * 0x100 + 230, ColorNames::lightblue },
|
|
Packit Service |
7770af |
{ 240 * 0x10000 + 128 * 0x100 + 128, ColorNames::lightcoral },
|
|
Packit Service |
7770af |
{ 224 * 0x10000 + 255 * 0x100 + 255, ColorNames::lightcyan },
|
|
Packit Service |
7770af |
{ 250 * 0x10000 + 250 * 0x100 + 210, ColorNames::lightgoldenrodyellow },
|
|
Packit Service |
7770af |
{ 211 * 0x10000 + 211 * 0x100 + 211, ColorNames::lightgray },
|
|
Packit Service |
7770af |
{ 144 * 0x10000 + 238 * 0x100 + 144, ColorNames::lightgreen },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 182 * 0x100 + 193, ColorNames::lightpink },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 160 * 0x100 + 122, ColorNames::lightsalmon },
|
|
Packit Service |
7770af |
{ 32 * 0x10000 + 178 * 0x100 + 170, ColorNames::lightseagreen },
|
|
Packit Service |
7770af |
{ 135 * 0x10000 + 206 * 0x100 + 250, ColorNames::lightskyblue },
|
|
Packit Service |
7770af |
{ 119 * 0x10000 + 136 * 0x100 + 153, ColorNames::lightslategray },
|
|
Packit Service |
7770af |
{ 176 * 0x10000 + 196 * 0x100 + 222, ColorNames::lightsteelblue },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 255 * 0x100 + 224, ColorNames::lightyellow },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 255 * 0x100 + 0, ColorNames::lime },
|
|
Packit Service |
7770af |
{ 50 * 0x10000 + 205 * 0x100 + 50, ColorNames::limegreen },
|
|
Packit Service |
7770af |
{ 250 * 0x10000 + 240 * 0x100 + 230, ColorNames::linen },
|
|
Packit Service |
7770af |
{ 128 * 0x10000 + 0 * 0x100 + 0, ColorNames::maroon },
|
|
Packit Service |
7770af |
{ 102 * 0x10000 + 205 * 0x100 + 170, ColorNames::mediumaquamarine },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 0 * 0x100 + 205, ColorNames::mediumblue },
|
|
Packit Service |
7770af |
{ 186 * 0x10000 + 85 * 0x100 + 211, ColorNames::mediumorchid },
|
|
Packit Service |
7770af |
{ 147 * 0x10000 + 112 * 0x100 + 219, ColorNames::mediumpurple },
|
|
Packit Service |
7770af |
{ 60 * 0x10000 + 179 * 0x100 + 113, ColorNames::mediumseagreen },
|
|
Packit Service |
7770af |
{ 123 * 0x10000 + 104 * 0x100 + 238, ColorNames::mediumslateblue },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 250 * 0x100 + 154, ColorNames::mediumspringgreen },
|
|
Packit Service |
7770af |
{ 72 * 0x10000 + 209 * 0x100 + 204, ColorNames::mediumturquoise },
|
|
Packit Service |
7770af |
{ 199 * 0x10000 + 21 * 0x100 + 133, ColorNames::mediumvioletred },
|
|
Packit Service |
7770af |
{ 25 * 0x10000 + 25 * 0x100 + 112, ColorNames::midnightblue },
|
|
Packit Service |
7770af |
{ 245 * 0x10000 + 255 * 0x100 + 250, ColorNames::mintcream },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 228 * 0x100 + 225, ColorNames::mistyrose },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 228 * 0x100 + 181, ColorNames::moccasin },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 222 * 0x100 + 173, ColorNames::navajowhite },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 0 * 0x100 + 128, ColorNames::navy },
|
|
Packit Service |
7770af |
{ 253 * 0x10000 + 245 * 0x100 + 230, ColorNames::oldlace },
|
|
Packit Service |
7770af |
{ 128 * 0x10000 + 128 * 0x100 + 0, ColorNames::olive },
|
|
Packit Service |
7770af |
{ 107 * 0x10000 + 142 * 0x100 + 35, ColorNames::olivedrab },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 165 * 0x100 + 0, ColorNames::orange },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 69 * 0x100 + 0, ColorNames::orangered },
|
|
Packit Service |
7770af |
{ 218 * 0x10000 + 112 * 0x100 + 214, ColorNames::orchid },
|
|
Packit Service |
7770af |
{ 238 * 0x10000 + 232 * 0x100 + 170, ColorNames::palegoldenrod },
|
|
Packit Service |
7770af |
{ 152 * 0x10000 + 251 * 0x100 + 152, ColorNames::palegreen },
|
|
Packit Service |
7770af |
{ 175 * 0x10000 + 238 * 0x100 + 238, ColorNames::paleturquoise },
|
|
Packit Service |
7770af |
{ 219 * 0x10000 + 112 * 0x100 + 147, ColorNames::palevioletred },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 239 * 0x100 + 213, ColorNames::papayawhip },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 218 * 0x100 + 185, ColorNames::peachpuff },
|
|
Packit Service |
7770af |
{ 205 * 0x10000 + 133 * 0x100 + 63, ColorNames::peru },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 192 * 0x100 + 203, ColorNames::pink },
|
|
Packit Service |
7770af |
{ 221 * 0x10000 + 160 * 0x100 + 221, ColorNames::plum },
|
|
Packit Service |
7770af |
{ 176 * 0x10000 + 224 * 0x100 + 230, ColorNames::powderblue },
|
|
Packit Service |
7770af |
{ 128 * 0x10000 + 0 * 0x100 + 128, ColorNames::purple },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 0 * 0x100 + 0, ColorNames::red },
|
|
Packit Service |
7770af |
{ 188 * 0x10000 + 143 * 0x100 + 143, ColorNames::rosybrown },
|
|
Packit Service |
7770af |
{ 65 * 0x10000 + 105 * 0x100 + 225, ColorNames::royalblue },
|
|
Packit Service |
7770af |
{ 139 * 0x10000 + 69 * 0x100 + 19, ColorNames::saddlebrown },
|
|
Packit Service |
7770af |
{ 250 * 0x10000 + 128 * 0x100 + 114, ColorNames::salmon },
|
|
Packit Service |
7770af |
{ 244 * 0x10000 + 164 * 0x100 + 96, ColorNames::sandybrown },
|
|
Packit Service |
7770af |
{ 46 * 0x10000 + 139 * 0x100 + 87, ColorNames::seagreen },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 245 * 0x100 + 238, ColorNames::seashell },
|
|
Packit Service |
7770af |
{ 160 * 0x10000 + 82 * 0x100 + 45, ColorNames::sienna },
|
|
Packit Service |
7770af |
{ 192 * 0x10000 + 192 * 0x100 + 192, ColorNames::silver },
|
|
Packit Service |
7770af |
{ 135 * 0x10000 + 206 * 0x100 + 235, ColorNames::skyblue },
|
|
Packit Service |
7770af |
{ 106 * 0x10000 + 90 * 0x100 + 205, ColorNames::slateblue },
|
|
Packit Service |
7770af |
{ 112 * 0x10000 + 128 * 0x100 + 144, ColorNames::slategray },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 250 * 0x100 + 250, ColorNames::snow },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 255 * 0x100 + 127, ColorNames::springgreen },
|
|
Packit Service |
7770af |
{ 70 * 0x10000 + 130 * 0x100 + 180, ColorNames::steelblue },
|
|
Packit Service |
7770af |
{ 210 * 0x10000 + 180 * 0x100 + 140, ColorNames::tan },
|
|
Packit Service |
7770af |
{ 0 * 0x10000 + 128 * 0x100 + 128, ColorNames::teal },
|
|
Packit Service |
7770af |
{ 216 * 0x10000 + 191 * 0x100 + 216, ColorNames::thistle },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 99 * 0x100 + 71, ColorNames::tomato },
|
|
Packit Service |
7770af |
{ 64 * 0x10000 + 224 * 0x100 + 208, ColorNames::turquoise },
|
|
Packit Service |
7770af |
{ 238 * 0x10000 + 130 * 0x100 + 238, ColorNames::violet },
|
|
Packit Service |
7770af |
{ 245 * 0x10000 + 222 * 0x100 + 179, ColorNames::wheat },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 255 * 0x100 + 255, ColorNames::white },
|
|
Packit Service |
7770af |
{ 245 * 0x10000 + 245 * 0x100 + 245, ColorNames::whitesmoke },
|
|
Packit Service |
7770af |
{ 255 * 0x10000 + 255 * 0x100 + 0, ColorNames::yellow },
|
|
Packit Service |
7770af |
{ 154 * 0x10000 + 205 * 0x100 + 50, ColorNames::yellowgreen },
|
|
Packit Service |
7770af |
{ 102 * 0x10000 + 51 * 0x100 + 153, ColorNames::rebeccapurple }
|
|
Packit Service |
7770af |
};
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
const std::map<const char*, Color_Ptr_Const, map_cmp_str> names_to_colors
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
{ ColorNames::aliceblue, &Colors::aliceblue },
|
|
Packit Service |
7770af |
{ ColorNames::antiquewhite, &Colors::antiquewhite },
|
|
Packit Service |
7770af |
{ ColorNames::cyan, &Colors::cyan },
|
|
Packit Service |
7770af |
{ ColorNames::aqua, &Colors::aqua },
|
|
Packit Service |
7770af |
{ ColorNames::aquamarine, &Colors::aquamarine },
|
|
Packit Service |
7770af |
{ ColorNames::azure, &Colors::azure },
|
|
Packit Service |
7770af |
{ ColorNames::beige, &Colors::beige },
|
|
Packit Service |
7770af |
{ ColorNames::bisque, &Colors::bisque },
|
|
Packit Service |
7770af |
{ ColorNames::black, &Colors::black },
|
|
Packit Service |
7770af |
{ ColorNames::blanchedalmond, &Colors::blanchedalmond },
|
|
Packit Service |
7770af |
{ ColorNames::blue, &Colors::blue },
|
|
Packit Service |
7770af |
{ ColorNames::blueviolet, &Colors::blueviolet },
|
|
Packit Service |
7770af |
{ ColorNames::brown, &Colors::brown },
|
|
Packit Service |
7770af |
{ ColorNames::burlywood, &Colors::burlywood },
|
|
Packit Service |
7770af |
{ ColorNames::cadetblue, &Colors::cadetblue },
|
|
Packit Service |
7770af |
{ ColorNames::chartreuse, &Colors::chartreuse },
|
|
Packit Service |
7770af |
{ ColorNames::chocolate, &Colors::chocolate },
|
|
Packit Service |
7770af |
{ ColorNames::coral, &Colors::coral },
|
|
Packit Service |
7770af |
{ ColorNames::cornflowerblue, &Colors::cornflowerblue },
|
|
Packit Service |
7770af |
{ ColorNames::cornsilk, &Colors::cornsilk },
|
|
Packit Service |
7770af |
{ ColorNames::crimson, &Colors::crimson },
|
|
Packit Service |
7770af |
{ ColorNames::darkblue, &Colors::darkblue },
|
|
Packit Service |
7770af |
{ ColorNames::darkcyan, &Colors::darkcyan },
|
|
Packit Service |
7770af |
{ ColorNames::darkgoldenrod, &Colors::darkgoldenrod },
|
|
Packit Service |
7770af |
{ ColorNames::darkgray, &Colors::darkgray },
|
|
Packit Service |
7770af |
{ ColorNames::darkgrey, &Colors::darkgrey },
|
|
Packit Service |
7770af |
{ ColorNames::darkgreen, &Colors::darkgreen },
|
|
Packit Service |
7770af |
{ ColorNames::darkkhaki, &Colors::darkkhaki },
|
|
Packit Service |
7770af |
{ ColorNames::darkmagenta, &Colors::darkmagenta },
|
|
Packit Service |
7770af |
{ ColorNames::darkolivegreen, &Colors::darkolivegreen },
|
|
Packit Service |
7770af |
{ ColorNames::darkorange, &Colors::darkorange },
|
|
Packit Service |
7770af |
{ ColorNames::darkorchid, &Colors::darkorchid },
|
|
Packit Service |
7770af |
{ ColorNames::darkred, &Colors::darkred },
|
|
Packit Service |
7770af |
{ ColorNames::darksalmon, &Colors::darksalmon },
|
|
Packit Service |
7770af |
{ ColorNames::darkseagreen, &Colors::darkseagreen },
|
|
Packit Service |
7770af |
{ ColorNames::darkslateblue, &Colors::darkslateblue },
|
|
Packit Service |
7770af |
{ ColorNames::darkslategray, &Colors::darkslategray },
|
|
Packit Service |
7770af |
{ ColorNames::darkslategrey, &Colors::darkslategrey },
|
|
Packit Service |
7770af |
{ ColorNames::darkturquoise, &Colors::darkturquoise },
|
|
Packit Service |
7770af |
{ ColorNames::darkviolet, &Colors::darkviolet },
|
|
Packit Service |
7770af |
{ ColorNames::deeppink, &Colors::deeppink },
|
|
Packit Service |
7770af |
{ ColorNames::deepskyblue, &Colors::deepskyblue },
|
|
Packit Service |
7770af |
{ ColorNames::dimgray, &Colors::dimgray },
|
|
Packit Service |
7770af |
{ ColorNames::dimgrey, &Colors::dimgrey },
|
|
Packit Service |
7770af |
{ ColorNames::dodgerblue, &Colors::dodgerblue },
|
|
Packit Service |
7770af |
{ ColorNames::firebrick, &Colors::firebrick },
|
|
Packit Service |
7770af |
{ ColorNames::floralwhite, &Colors::floralwhite },
|
|
Packit Service |
7770af |
{ ColorNames::forestgreen, &Colors::forestgreen },
|
|
Packit Service |
7770af |
{ ColorNames::magenta, &Colors::magenta },
|
|
Packit Service |
7770af |
{ ColorNames::fuchsia, &Colors::fuchsia },
|
|
Packit Service |
7770af |
{ ColorNames::gainsboro, &Colors::gainsboro },
|
|
Packit Service |
7770af |
{ ColorNames::ghostwhite, &Colors::ghostwhite },
|
|
Packit Service |
7770af |
{ ColorNames::gold, &Colors::gold },
|
|
Packit Service |
7770af |
{ ColorNames::goldenrod, &Colors::goldenrod },
|
|
Packit Service |
7770af |
{ ColorNames::gray, &Colors::gray },
|
|
Packit Service |
7770af |
{ ColorNames::grey, &Colors::grey },
|
|
Packit Service |
7770af |
{ ColorNames::green, &Colors::green },
|
|
Packit Service |
7770af |
{ ColorNames::greenyellow, &Colors::greenyellow },
|
|
Packit Service |
7770af |
{ ColorNames::honeydew, &Colors::honeydew },
|
|
Packit Service |
7770af |
{ ColorNames::hotpink, &Colors::hotpink },
|
|
Packit Service |
7770af |
{ ColorNames::indianred, &Colors::indianred },
|
|
Packit Service |
7770af |
{ ColorNames::indigo, &Colors::indigo },
|
|
Packit Service |
7770af |
{ ColorNames::ivory, &Colors::ivory },
|
|
Packit Service |
7770af |
{ ColorNames::khaki, &Colors::khaki },
|
|
Packit Service |
7770af |
{ ColorNames::lavender, &Colors::lavender },
|
|
Packit Service |
7770af |
{ ColorNames::lavenderblush, &Colors::lavenderblush },
|
|
Packit Service |
7770af |
{ ColorNames::lawngreen, &Colors::lawngreen },
|
|
Packit Service |
7770af |
{ ColorNames::lemonchiffon, &Colors::lemonchiffon },
|
|
Packit Service |
7770af |
{ ColorNames::lightblue, &Colors::lightblue },
|
|
Packit Service |
7770af |
{ ColorNames::lightcoral, &Colors::lightcoral },
|
|
Packit Service |
7770af |
{ ColorNames::lightcyan, &Colors::lightcyan },
|
|
Packit Service |
7770af |
{ ColorNames::lightgoldenrodyellow, &Colors::lightgoldenrodyellow },
|
|
Packit Service |
7770af |
{ ColorNames::lightgray, &Colors::lightgray },
|
|
Packit Service |
7770af |
{ ColorNames::lightgrey, &Colors::lightgrey },
|
|
Packit Service |
7770af |
{ ColorNames::lightgreen, &Colors::lightgreen },
|
|
Packit Service |
7770af |
{ ColorNames::lightpink, &Colors::lightpink },
|
|
Packit Service |
7770af |
{ ColorNames::lightsalmon, &Colors::lightsalmon },
|
|
Packit Service |
7770af |
{ ColorNames::lightseagreen, &Colors::lightseagreen },
|
|
Packit Service |
7770af |
{ ColorNames::lightskyblue, &Colors::lightskyblue },
|
|
Packit Service |
7770af |
{ ColorNames::lightslategray, &Colors::lightslategray },
|
|
Packit Service |
7770af |
{ ColorNames::lightslategrey, &Colors::lightslategrey },
|
|
Packit Service |
7770af |
{ ColorNames::lightsteelblue, &Colors::lightsteelblue },
|
|
Packit Service |
7770af |
{ ColorNames::lightyellow, &Colors::lightyellow },
|
|
Packit Service |
7770af |
{ ColorNames::lime, &Colors::lime },
|
|
Packit Service |
7770af |
{ ColorNames::limegreen, &Colors::limegreen },
|
|
Packit Service |
7770af |
{ ColorNames::linen, &Colors::linen },
|
|
Packit Service |
7770af |
{ ColorNames::maroon, &Colors::maroon },
|
|
Packit Service |
7770af |
{ ColorNames::mediumaquamarine, &Colors::mediumaquamarine },
|
|
Packit Service |
7770af |
{ ColorNames::mediumblue, &Colors::mediumblue },
|
|
Packit Service |
7770af |
{ ColorNames::mediumorchid, &Colors::mediumorchid },
|
|
Packit Service |
7770af |
{ ColorNames::mediumpurple, &Colors::mediumpurple },
|
|
Packit Service |
7770af |
{ ColorNames::mediumseagreen, &Colors::mediumseagreen },
|
|
Packit Service |
7770af |
{ ColorNames::mediumslateblue, &Colors::mediumslateblue },
|
|
Packit Service |
7770af |
{ ColorNames::mediumspringgreen, &Colors::mediumspringgreen },
|
|
Packit Service |
7770af |
{ ColorNames::mediumturquoise, &Colors::mediumturquoise },
|
|
Packit Service |
7770af |
{ ColorNames::mediumvioletred, &Colors::mediumvioletred },
|
|
Packit Service |
7770af |
{ ColorNames::midnightblue, &Colors::midnightblue },
|
|
Packit Service |
7770af |
{ ColorNames::mintcream, &Colors::mintcream },
|
|
Packit Service |
7770af |
{ ColorNames::mistyrose, &Colors::mistyrose },
|
|
Packit Service |
7770af |
{ ColorNames::moccasin, &Colors::moccasin },
|
|
Packit Service |
7770af |
{ ColorNames::navajowhite, &Colors::navajowhite },
|
|
Packit Service |
7770af |
{ ColorNames::navy, &Colors::navy },
|
|
Packit Service |
7770af |
{ ColorNames::oldlace, &Colors::oldlace },
|
|
Packit Service |
7770af |
{ ColorNames::olive, &Colors::olive },
|
|
Packit Service |
7770af |
{ ColorNames::olivedrab, &Colors::olivedrab },
|
|
Packit Service |
7770af |
{ ColorNames::orange, &Colors::orange },
|
|
Packit Service |
7770af |
{ ColorNames::orangered, &Colors::orangered },
|
|
Packit Service |
7770af |
{ ColorNames::orchid, &Colors::orchid },
|
|
Packit Service |
7770af |
{ ColorNames::palegoldenrod, &Colors::palegoldenrod },
|
|
Packit Service |
7770af |
{ ColorNames::palegreen, &Colors::palegreen },
|
|
Packit Service |
7770af |
{ ColorNames::paleturquoise, &Colors::paleturquoise },
|
|
Packit Service |
7770af |
{ ColorNames::palevioletred, &Colors::palevioletred },
|
|
Packit Service |
7770af |
{ ColorNames::papayawhip, &Colors::papayawhip },
|
|
Packit Service |
7770af |
{ ColorNames::peachpuff, &Colors::peachpuff },
|
|
Packit Service |
7770af |
{ ColorNames::peru, &Colors::peru },
|
|
Packit Service |
7770af |
{ ColorNames::pink, &Colors::pink },
|
|
Packit Service |
7770af |
{ ColorNames::plum, &Colors::plum },
|
|
Packit Service |
7770af |
{ ColorNames::powderblue, &Colors::powderblue },
|
|
Packit Service |
7770af |
{ ColorNames::purple, &Colors::purple },
|
|
Packit Service |
7770af |
{ ColorNames::red, &Colors::red },
|
|
Packit Service |
7770af |
{ ColorNames::rosybrown, &Colors::rosybrown },
|
|
Packit Service |
7770af |
{ ColorNames::royalblue, &Colors::royalblue },
|
|
Packit Service |
7770af |
{ ColorNames::saddlebrown, &Colors::saddlebrown },
|
|
Packit Service |
7770af |
{ ColorNames::salmon, &Colors::salmon },
|
|
Packit Service |
7770af |
{ ColorNames::sandybrown, &Colors::sandybrown },
|
|
Packit Service |
7770af |
{ ColorNames::seagreen, &Colors::seagreen },
|
|
Packit Service |
7770af |
{ ColorNames::seashell, &Colors::seashell },
|
|
Packit Service |
7770af |
{ ColorNames::sienna, &Colors::sienna },
|
|
Packit Service |
7770af |
{ ColorNames::silver, &Colors::silver },
|
|
Packit Service |
7770af |
{ ColorNames::skyblue, &Colors::skyblue },
|
|
Packit Service |
7770af |
{ ColorNames::slateblue, &Colors::slateblue },
|
|
Packit Service |
7770af |
{ ColorNames::slategray, &Colors::slategray },
|
|
Packit Service |
7770af |
{ ColorNames::slategrey, &Colors::slategrey },
|
|
Packit Service |
7770af |
{ ColorNames::snow, &Colors::snow },
|
|
Packit Service |
7770af |
{ ColorNames::springgreen, &Colors::springgreen },
|
|
Packit Service |
7770af |
{ ColorNames::steelblue, &Colors::steelblue },
|
|
Packit Service |
7770af |
{ ColorNames::tan, &Colors::tan },
|
|
Packit Service |
7770af |
{ ColorNames::teal, &Colors::teal },
|
|
Packit Service |
7770af |
{ ColorNames::thistle, &Colors::thistle },
|
|
Packit Service |
7770af |
{ ColorNames::tomato, &Colors::tomato },
|
|
Packit Service |
7770af |
{ ColorNames::turquoise, &Colors::turquoise },
|
|
Packit Service |
7770af |
{ ColorNames::violet, &Colors::violet },
|
|
Packit Service |
7770af |
{ ColorNames::wheat, &Colors::wheat },
|
|
Packit Service |
7770af |
{ ColorNames::white, &Colors::white },
|
|
Packit Service |
7770af |
{ ColorNames::whitesmoke, &Colors::whitesmoke },
|
|
Packit Service |
7770af |
{ ColorNames::yellow, &Colors::yellow },
|
|
Packit Service |
7770af |
{ ColorNames::yellowgreen, &Colors::yellowgreen },
|
|
Packit Service |
7770af |
{ ColorNames::rebeccapurple, &Colors::rebeccapurple },
|
|
Packit Service |
7770af |
{ ColorNames::transparent, &Colors::transparent }
|
|
Packit Service |
7770af |
};
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
Color_Ptr_Const name_to_color(const char* key)
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
auto p = names_to_colors.find(key);
|
|
Packit Service |
7770af |
if (p != names_to_colors.end()) {
|
|
Packit Service |
7770af |
return p->second;
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
return 0;
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
Color_Ptr_Const name_to_color(const std::string& key)
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
return name_to_color(key.c_str());
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
const char* color_to_name(const int key)
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
auto p = colors_to_names.find(key);
|
|
Packit Service |
7770af |
if (p != colors_to_names.end()) {
|
|
Packit Service |
7770af |
return p->second;
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
return 0;
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
const char* color_to_name(const double key)
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
return color_to_name((int)key);
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
const char* color_to_name(const Color& c)
|
|
Packit Service |
7770af |
{
|
|
Packit Service |
7770af |
double key = c.r() * 0x10000
|
|
Packit Service |
7770af |
+ c.g() * 0x100
|
|
Packit Service |
7770af |
+ c.b();
|
|
Packit Service |
7770af |
return color_to_name(key);
|
|
Packit Service |
7770af |
}
|
|
Packit Service |
7770af |
|
|
Packit Service |
7770af |
}
|