Skip to content

Commit 475091e

Browse files
committed
Now using new strokePoints method
1 parent 8ab0011 commit 475091e

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

v3/src/curves/curve/inc/Draw.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,8 @@ var Draw = function (graphics, pointsTotal)
1313
{
1414
if (pointsTotal === undefined) { pointsTotal = 32; }
1515

16-
var start = this.getStartPoint();
17-
var points = this.getPoints(pointsTotal);
18-
19-
graphics.beginPath();
20-
21-
graphics.moveTo(start.x, start.y);
22-
23-
for (var i = 1; i < points.length; i++)
24-
{
25-
graphics.lineTo(points[i].x, points[i].y);
26-
}
27-
28-
graphics.strokePath();
29-
graphics.closePath();
30-
3116
// So you can chain graphics calls
32-
return graphics;
17+
return graphics.strokePoints(this.getPoints(pointsTotal));
3318
};
3419

3520
module.exports = Draw;

0 commit comments

Comments
 (0)