From 4f54603daab6527d9971796163d51e6e62d65573 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Mar 2015 15:54:34 -0400 Subject: reds and blues --- js/color_code.js | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/color_code.js b/js/color_code.js index fde398f..e1a4d55 100644 --- a/js/color_code.js +++ b/js/color_code.js @@ -54,7 +54,42 @@ var MircColor = (function(){ [127,127,127], [210,210,210] ] - + var REDS = [ + [255,255,255], + [0,0,0], + null, + null, + [255,0,0], + [127,0,0], + null, + [252,127,0], + [255,255,0], + null, + null, + null, + null, + [255,0,255], + null, + null, + ] + var BLUES = [ + [255,255,255], + [0,0,0], + [0,0,127], + null, + null, + null, + [156,0,156], + null, + null, + [0,252,0], + [0,147,147], + [0,255,255], + [0,0,252], + [255,0,255], + null, + null, + ] var colors = COLORS, recolor_fn = null function set_colors (a) { colors = a @@ -185,6 +220,8 @@ var MircColor = (function(){ colors: COLORS, hues: HUES, grays: GRAYS, + reds: REDS, + blues: BLUES, set_recolor_fn: set_recolor_fn, set_colors: set_colors, closest_to: closest_to, -- cgit v1.2.3-70-g09d2