summaryrefslogtreecommitdiff
path: root/js/color.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-05-23 01:07:46 -0400
committerJules Laplace <jules@okfoc.us>2016-05-23 01:07:46 -0400
commitcbe5a189dca1c228186fb1e433071578614c4e91 (patch)
tree8e878e1febe2a35dbe97fa71f4ae8e78009fbedc /js/color.js
parent7ac0cf096e9b9f0ff0c15968e7f04caeeb220f36 (diff)
genetic algorhehrithm
Diffstat (limited to 'js/color.js')
-rw-r--r--js/color.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/color.js b/js/color.js
index 23fb13f..0ba29e7 100644
--- a/js/color.js
+++ b/js/color.js
@@ -33,6 +33,7 @@ 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 rand_gray () { return colors[gray_names[randint(4)]] }
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]] }