Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make p5.js target work with standalone P5 #106

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

MaxPleaner
Copy link
Contributor

P5 functions are available as globals in their web editor but not necessary the case in all P5 environments.

Modify the P5 draw function to make it work in environments where those functions aren't global.

I'm sorry, but I am not very good at Javascript build systems and though I tried the yarn => yarn build => yarn link => yarn link shader-park-core workflow it didn't work, I was getting this error exports is not defined which I am not sure about, but I doubt that's caused by my code changes.

P5 functions are available as globals in their web editor but not necessary the case in all P5 environments.

Modify the P5 draw function to make it work in environments where those functions aren't global.
@PWhiddy
Copy link
Member

PWhiddy commented Dec 4, 2023

Looks good to me! Thanks!

@PWhiddy PWhiddy merged commit 9361f05 into shader-park:main Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants