Skip to content

Update “Getting Started with Node.js” tutorial for p5.js 2.x #837

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

Open
perminder-17 opened this issue May 10, 2025 · 2 comments
Open
Labels
Bug Something isn't working Documentation Improvements or additions to documentation Good First Issue Good for newcomers Help Wanted Extra attention is needed
Milestone

Comments

@perminder-17
Copy link
Contributor

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Linux

Web browser and version

Firefox

Actual Behavior

The “Getting Started with Node.js” tutorial is still using p5.js 1.x patterns (e.g. preload(), old APIs, external sketches locked to 1.x). Legacy p5.js 1.x APIs (e.g. old shape-drawing signatures) remain in the code samples. Several external Web Editor sketches are locked to p5.js 1.x and won’t run under 2.x.

Expected Behavior

Since p5.js 2.0 has removed preload() and other legacy methods in favor of async/await and updated several APIs, we need to refresh this tutorial so it only uses supported 2.x functionality. Every linked sketch should has been forked (or updated) to use p5.js 2.x so examples execute correctly.

Steps to reproduce

No response

Would you like to work on the issue?

Looking for volunteer

@perminder-17 perminder-17 added Bug Something isn't working Good First Issue Good for newcomers labels May 10, 2025
@perminder-17 perminder-17 moved this to Ready for Work in p5.js 2.x 🌱🌳 May 10, 2025
@perminder-17 perminder-17 added this to the 2.x Anytime milestone May 10, 2025
@perminder-17 perminder-17 added Documentation Improvements or additions to documentation Help Wanted Extra attention is needed labels May 10, 2025
@ksen0
Copy link
Member

ksen0 commented May 11, 2025

Thanks for spotting this! In this one, I believe the only external code examples is https://github.com/MsQCompSci/melodyAppSetup so this could potentially be forked for a 2.0 version? Is there other external code in this?

@prjctimg
Copy link

@perminder-17 I saw the outdated code blocks which need to be updated to match v2.x syntax. Not sure which would be faster, forking the Melody app repo or submitting a pull request on the original repository ?

@ksen0
I'd love to work on this at the earliest convenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Documentation Improvements or additions to documentation Good First Issue Good for newcomers Help Wanted Extra attention is needed
Projects
Status: Ready for Work
Development

No branches or pull requests

3 participants