P5.js onCanvasCreated?

Hi! I’m sure I’ve encountered this problem before. I think there is no callback so you need to pass that function and execute it in setup…

But if what you want is to set the parent node, you can set it directly in the constructor

2 Likes