Skip to content

Adding p5js multimedia and web functions  #6

@Wildernesss

Description

@Wildernesss

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions