Merge pull request #2348 from koenpunt/graph-contrast

Skipping colors to get more contrast between colors
This commit is contained in:
Dmitriy Zaporozhets 2012-12-23 11:08:05 -08:00
commit 2a390f5dc1

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