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, 3 insertions, 3 deletions
diff --git a/js/color.js b/js/color.js
index 738ad02..8f51518 100644
--- a/js/color.js
+++ b/js/color.js
@@ -1,8 +1,8 @@
var color_names = ("white black dark-blue green red dark-red purple orange " +
"yellow lime dark-cyan cyan blue magenta dark-gray light-gray").split(" ");
-var all_color_hue_order = ("black dark-blue purple dark-red red orange " +
- "yellow lime green dark-cyan cyan blue magenta dark-gray light-gray white").split(" ");
+var all_color_hue_order = ("dark-red red orange " +
+ "yellow lime green dark-cyan cyan blue dark-blue purple magenta black dark-gray light-gray white").split(" ");
var color_hue_order = "dark-red red orange yellow lime cyan dark-cyan blue dark-blue purple magenta".split(" ");
var gray_names = ("black dark-gray light-gray white").split(" ")
@@ -18,7 +18,7 @@ var colors = {}
color_names.forEach(function(name, i){ colors[name] = i })
-function all_hue (n) { return colors[color_hue_order[mod(n, 16)|0]] }
+function all_hue (n) { return colors[all_color_hue_order[mod(n, 16)|0]] }
function hue (n) { return colors[color_hue_order[mod(n, 11)|0]] }
function gray (n) { return colors[gray_names[mod(n, 4)|0]] }
function fire (n) { return colors[fire_names[mod(n, 7)|0]] }