Skip to content

Commit 91bcb62

Browse files
committed
fix: add splineVertex to p5.Graphics prototype and fix unit test error
1 parent e1cc2e0 commit 91bcb62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/p5.Graphics.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,10 @@ function graphics(p5, fn){
671671
* </div>
672672
*/
673673
p5.Graphics = Graphics;
674-
674+
p5.Graphics.prototype.splineVertex = function(x, y, z, u, v) {
675+
this._renderer.splineVertex(x, y, z, u, v);
676+
return this;
677+
};
675678
// Shapes
676679
primitives2D(p5, p5.Graphics.prototype);
677680
attributes(p5, p5.Graphics.prototype);

0 commit comments

Comments
 (0)