From c7d29b826fb6ceb2034220cd970c871bb5929dd3 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 24 Jan 2020 15:26:10 +0000 Subject: [PATCH] Add "darkslategray" and "rebeccapurple" named colors (ref: https://drafts.csswg.org/css-color/#typedef-color) --- include/mapnik/css_color_grammar_x3_def.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mapnik/css_color_grammar_x3_def.hpp b/include/mapnik/css_color_grammar_x3_def.hpp index 7f32d0219..220523e85 100644 --- a/include/mapnik/css_color_grammar_x3_def.hpp +++ b/include/mapnik/css_color_grammar_x3_def.hpp @@ -101,6 +101,7 @@ struct named_colors_ : x3::symbols ("darksalmon", color(233, 150, 122)) ("darkseagreen", color(143, 188, 143)) ("darkslateblue", color(72, 61, 139)) + ("darkslategray", color(47, 79, 79)) ("darkslategrey", color(47, 79, 79)) ("darkturquoise", color(0, 206, 209)) ("darkviolet", color(148, 0, 211)) @@ -118,9 +119,9 @@ struct named_colors_ : x3::symbols ("gold", color(255, 215, 0)) ("goldenrod", color(218, 165, 32)) ("gray", color(128, 128, 128)) - ("grey", color(128, 128, 128)) ("green", color(0, 128, 0)) ("greenyellow", color(173, 255, 47)) + ("grey", color(128, 128, 128)) ("honeydew", color(240, 255, 240)) ("hotpink", color(255, 105, 180)) ("indianred", color(205, 92, 92)) @@ -183,6 +184,7 @@ struct named_colors_ : x3::symbols ("plum", color(221, 160, 221)) ("powderblue", color(176, 224, 230)) ("purple", color(128, 0, 128)) + ("rebeccapurple", color(102, 51, 153)) ("red", color(255, 0, 0)) ("rosybrown", color(188, 143, 143)) ("royalblue", color(65, 105, 225))