summaryrefslogtreecommitdiff
path: root/js/color.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/color.js')
-rw-r--r--js/color.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/color.js b/js/color.js
index 9dbd3e1..f3826e8 100644
--- a/js/color.js
+++ b/js/color.js
@@ -21,6 +21,8 @@ color_names.forEach(function(name, i){ colors[name] = i })
function get_inverse (n) { return colors[all_color_inv_order.indexOf(color_names[n])] }
+function mirc_color (n) { return mod(n, 16)|0 }
+function mirc_color_reverse (n) { return mod(-(n+1), 16)|0 }
function all_hue (n) { return colors[all_color_hue_order[mod(n, 16)|0]] }
function all_inv_hue (n) { return colors[all_color_inv_order[mod(n, 16)|0]] }
function hue (n) { return colors[color_hue_order[mod(n, 11)|0]] }