Skipping colors to get more contrast between colors

4-1-stable
Koen Punt 2012-12-23 17:00:26 +01:00
parent 6a932d0af5
commit 4ebee56acc
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
};