Skip to content

Correct use of p5.js with ES6? #1734

@vilvadot

Description

@vilvadot

So I set up a little starting project with Webpack interpreting ES6 with babel.

Im loving the way to work but I have a question. For example in this sketch:

screen shot 2016-12-31 at 02 11 04

As you can see I must prepend "p5" to all functions, since its not in the global namespace, is there a way to avoid this for the shake of cleaner and easier to write code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions