From b33d7b7f23ac663c9d109b04a02ba21237afd7c7 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Mon, 15 Mar 2021 18:15:25 -0700 Subject: [PATCH] Added several fg:bg color pairs to color_list[] for use with -default-colors CLI flag in WolframAutomata. --- hacks/WolframAutomata/WolframAutomata.c | 29 ++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/hacks/WolframAutomata/WolframAutomata.c b/hacks/WolframAutomata/WolframAutomata.c index 59562b3..5e20718 100644 --- a/hacks/WolframAutomata/WolframAutomata.c +++ b/hacks/WolframAutomata/WolframAutomata.c @@ -49,6 +49,7 @@ // -background "COLORNAME" // (default is black and white) // (mention sample color combinations in manpage, and link to: https://en.wikipedia.org/wiki/X11_color_names) +// (note to the user that most color names they can naturally think of (e.g. red, purple, gray, pink, etc) are valid X11 color names for these CLI options.) // display info overlay with CA number and start conditions? // -overlay // which ruleset number to use? Or random? Or random from small set of hand-selected interesting examples? @@ -166,9 +167,35 @@ struct color_pair { }; // TODO: Decorations -// TODO: Populate this table with more examples. static const struct color_pair color_list[] = { + {"red", "black"}, + {"olive", "black"}, + {"teal", "black"}, + {"slateblue", "black"}, + {"violet", "black"}, + {"purple", "black"}, {"white", "black"}, + {"white", "darkgreen"}, + {"white", "darkmagenta"}, + {"white", "darkred"}, + {"white", "darkblue"}, + {"darkslategray", "darkslategray1"}, + {"lightsteelblue", "darkslategray"}, + {"royalblue4", "royalblue"}, + {"antiquewhite2", "antiquewhite4"}, + {"darkolivegreen1", "darkolivegreen"}, + {"darkseagreen1", "darkseagreen4"}, + {"pink", "darkred"}, + {"lightblue", "darkgreen"}, + {"red", "blue"}, + {"red", "darkgreen"}, + {"aqua", "teal"}, + {"darkblue", "teal"}, + {"khaki", "seagreen"}, + {"khaki", "darkolivegreen"}, + {"lightslategray", "darkslategray"}, + {"tomato", "darkslategray"}, + {"tomato", "darkcyan"} }; /* -------------------------------------------------------------------------- */ -- 2.20.1