random hues for branches

This commit is contained in:
Peter Cottle 2012-10-12 14:31:17 -07:00
parent 7d88e5564c
commit ea6844ae04
5 changed files with 38 additions and 41 deletions

View file

@ -246,7 +246,7 @@ GitVisuals.prototype.calcDepth = function() {
// issue warning
events.trigger('issueWarning',
'Max Depth Exceeded! Visuals may degrade here. ' +
'Please start fresh or use reset to reduce the max depth'
'Please start fresh'
);
}
@ -454,33 +454,6 @@ function randomGradient() {
return gradient;
};
function cutePath(paper, pathString, options) {
options = options || {};
var wantsToFill = options.wantsToFill;
var strokeColor = options.strokeColor;
var fillColor = options.fillColor;
var path = paper.path(pathString);
if (!strokeColor) {
strokeColor = randomHueString();
}
if (!fillColor) {
fillColor = randomHueString();
}
path.attr({
'stroke-width': 2,
'stroke': strokeColor,
'stroke-linecap': 'round',
'stroke-linejoin': 'round'
});
if (wantsToFill) {
path.attr('fill',fillColor);
}
return path;
};
function cuteSmallCircle(paper, x, y, options) {
var options = options || {};
var wantsSameColor = options.sameColor;