pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

Not sure what went wrong #15

Closed jakearmendariz closed 5 years ago

jakearmendariz commented 5 years ago

I am not sure what the problem was and it may be my fault but I was just trying to open the canvas with a setup and draw function and than with nothing at all and Screen Shot 2019-03-26 at 5 23 10 PM I got this along with a message stating "An error occurred..." where the canvas should be. Thank you and I apologize if I set it up incorrectly.

pixelkind commented 5 years ago

Hej, you did everything right. I already work on the new API but haven't had the time to release ist. Usually, when this error appears, it helps to close the p5canvas and re-open it. I will try to ship the new version this weekend.

pixelkind commented 5 years ago

Hej @jakearmendariz, I have just published a first version, will need some clean up, but would be happy if you could provide some feedback if everything works as expected.

zero1ne commented 5 years ago

Does this p5canvas no longer work? I wanted to run example code using p5canvas, but only black screen comes out.

Screenshot 2019-04-08 08 16 09
pixelkind commented 5 years ago

Hej @skycwy223, it should work. Can you create an extra issue and provide me with the example code? One thing I already see is that you want to use your own setup function, p5canvas creates a canvas for you, so you have not to write your own setup function and call createCanvas.