From 4ebee56acc589f0285fcad441b2619fd8eccdc74 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sun, 23 Dec 2012 17:00:26 +0100 Subject: [PATCH] Skipping colors to get more contrast between colors --- vendor/assets/javascripts/branch-graph.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/branch-graph.js b/vendor/assets/javascripts/branch-graph.js index a7e1e152..456c3ff6 100644 --- a/vendor/assets/javascripts/branch-graph.js +++ b/vendor/assets/javascripts/branch-graph.js @@ -57,7 +57,9 @@ BranchGraph.prototype.collectColors = function(){ for (var k = 0; k < this.mspace; k++) { - this.colors.push(Raphael.getColor()); + this.colors.push(Raphael.getColor(.8)); + // Skipping a few colors in the spectrum to get more contrast between colors + Raphael.getColor();Raphael.getColor(); } };