Merge pull request #2348 from koenpunt/graph-contrast
Skipping colors to get more contrast between colors
This commit is contained in:
commit
2a390f5dc1
4
vendor/assets/javascripts/branch-graph.js
vendored
4
vendor/assets/javascripts/branch-graph.js
vendored
|
@ -57,7 +57,9 @@
|
||||||
|
|
||||||
BranchGraph.prototype.collectColors = function(){
|
BranchGraph.prototype.collectColors = function(){
|
||||||
for (var k = 0; k < this.mspace; k++) {
|
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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue