Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make p5.js target work with standalone P5 #106

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

Merged
PWhiddy merged 1 commit into shader-park:main from MaxPleaner:patch-2
Dec 4, 2023

Conversation

Copy link
Contributor

@MaxPleaner MaxPleaner commented Dec 4, 2023

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.

PWhiddy reacted with heart emoji
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.
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
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /