summaryrefslogtreecommitdiff
path: root/js/color.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/color.js')
-rw-r--r--js/color.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/color.js b/js/color.js
index 364ae1a..a4299b1 100644
--- a/js/color.js
+++ b/js/color.js
@@ -19,7 +19,11 @@ var purple_names = ("dark-blue purple magenta red").split(" ")
var dark_gray_names = ("black dark-blue teal dark-gray light-gray white").split(" ")
var color_alphabet = "abcdefghijklmnop";
var colors = {}
-color_names.forEach(function(name, i){ colors[name] = i })
+color_names.forEach(function(name, i){
+ colors[name.replace("-", "")] = i
+ colors[name] = i
+})
+colors.brown = 5
function get_inverse (n) { return colors[all_color_inv_order.indexOf(color_names[n])] }