paperjs/paper.js — pull request #72 by richardharrington (2012-02-04 07:27:54+00:00)
Title: Closing of paths, when path._closed is true

Hello,

It's quite possible that I'm missing something, so I do apologize if there's a way to deal with this issue that I don't know about, other than altering the source code.

Here's the issue: it appears that all that the Path objects' internal property '_closed' does is to make sure that a line is drawn from the last segment to the first segment. The path is NOT then joined with the native canvas method context.closePath().

As a result, the point where the two segments overlap can look very jagged in cases where you're trying to draw a polygon or a star or something, with a wide strokeWidth.

So I've added the closePath() method to the draw() method.

See what you think.

And thanks so much for all the hard work. It's really a great tool.

Richard