diff options
Diffstat (limited to 'js/color.js')
| -rw-r--r-- | js/color.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/color.js b/js/color.js index a4299b1..23fb13f 100644 --- a/js/color.js +++ b/js/color.js @@ -32,6 +32,7 @@ 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]] } +function rand_hue () { return colors[color_hue_order[randint(11)]] } function inv_hue (n) { return colors[color_inv_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]] } |
