From cbe5a189dca1c228186fb1e433071578614c4e91 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 23 May 2016 01:07:46 -0400 Subject: genetic algorhehrithm --- js/color.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/color.js') 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]] } -- cgit v1.2.3-70-g09d2