diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-05-05 02:01:44 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-05-05 02:01:44 -0400 |
| commit | fc08671feee428a44e5013e42f9a104609f6de32 (patch) | |
| tree | 0f1b2acdcf346a8fb31274d6d83b9544c100bd60 /js/color.js | |
| parent | 5784ba304c516a16ccb07051739441a7412c0e2d (diff) | |
shift-click palette
Diffstat (limited to 'js/color.js')
| -rw-r--r-- | js/color.js | 2 |
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]] } |
