Skip to content

Commit

Permalink
match up styles a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Barron committed Oct 12, 2010
1 parent 829c9b3 commit 6c101bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/spider-raph.js
Expand Up @@ -32,8 +32,10 @@ var SpiderRaph = {
var w = this.width / 2;
var s = this.paper.set();
var l = this.paper.path(this.pathString(w, h, w, 0));
var e = this.paper.path(this.pathString(w -3, 0, w + 3, 0));
var e = this.paper.path(this.pathString(w - 5, 0, w + 5, 0));
s.push(l, e);
s.attr({"stroke-width":3, "stroke-opacity": 0.45, "stroke": "#555555", "stroke-linecap": "round"});

s.rotate(axis * this.angle, w, h);
},

Expand All @@ -45,7 +47,8 @@ var SpiderRaph = {
var prev_pt = this.pointForAngle(0, first);
for (var i = 0; i < values.length; i++) {
var pt = this.pointForAngle(i+1, values[i]);
this.paper.path(this.pathString(prev_pt.x, prev_pt.y, pt.x, pt.y));
var path = this.paper.path(this.pathString(prev_pt.x, prev_pt.y, pt.x, pt.y));
path.attr({"stroke-width":2, "stroke": "#333333"});
prev_pt = pt;
}
},
Expand Down

0 comments on commit 6c101bb

Please sign in to comment.