Skip to content

Commit 6212a74

Browse files
author
Lauren McCarthy
committed
closes #408
1 parent 8676369 commit 6212a74

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/p5.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.js v0.3.14 December 16, 2014 */
1+
/*! p5.js v0.3.14 December 17, 2014 */
22
var shim = function (require) {
33
window.requestDraw = function () {
44
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) {
@@ -4570,6 +4570,9 @@ var shapevertex = function (require, core, constants) {
45704570
];
45714571
this.drawingContext.bezierCurveTo(b[1][0], b[1][1], b[2][0], b[2][1], b[3][0], b[3][1]);
45724572
}
4573+
if (closeShape) {
4574+
this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);
4575+
}
45734576
this._doFillStrokeClose();
45744577
}
45754578
} else if (isBezier && (shapeKind === constants.POLYGON || shapeKind === null)) {

0 commit comments

Comments
 (0)