Skip to content

Commit 6d9fc0d

Browse files
committed
fix: add customShapes to p5.Graphics.js and fix unit test error
1 parent e1cc2e0 commit 6d9fc0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/p5.Graphics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import material from '../webgl/material';
2323
import creatingReading from '../color/creating_reading';
2424
import trigonometry from '../math/trigonometry';
2525
import { renderers } from './rendering';
26+
import customShapes from '../shape/custom_shapes';
2627

2728
class Graphics {
2829
constructor(w, h, renderer, pInst, canvas) {
@@ -677,6 +678,7 @@ function graphics(p5, fn){
677678
attributes(p5, p5.Graphics.prototype);
678679
curves(p5, p5.Graphics.prototype);
679680
vertex(p5, p5.Graphics.prototype);
681+
customShapes(p5, p5.Graphics.prototype);
680682

681683
setting(p5, p5.Graphics.prototype);
682684
loadingDisplaying(p5, p5.Graphics.prototype);

0 commit comments

Comments
 (0)