Hi,
Great project, thanks! Just a little problem: when the Python code of the p5js sketch contains an error, the corresponding statement is ignored at execution... For example the below code does not produce any error (exectued into editor.p5js.org*) but the imagexyz() function has not been defined into the py5js.js wrapper (but the preload(), loadImage() and image() function were added).
It's very confusing for beginners when code errors are simply ignored at execution.
Any idea?
Thanks a lot for your nice project!
Laurent
def preload():
global img
img = loadImage("dices.png")
def setup():
createCanvas(400, 400)
background(220)
def draw():
imagexyz(img 0, 0, 400, 400)
Hi,
Great project, thanks! Just a little problem: when the Python code of the p5js sketch contains an error, the corresponding statement is ignored at execution... For example the below code does not produce any error (exectued into editor.p5js.org*) but the imagexyz() function has not been defined into the py5js.js wrapper (but the preload(), loadImage() and image() function were added).
It's very confusing for beginners when code errors are simply ignored at execution.
Any idea?
Thanks a lot for your nice project!
Laurent