From 4444e808da4b7d2fc79c22a43c4ff7352367a747 Mon Sep 17 00:00:00 2001 From: kit <1304340+ksen0@users.noreply.github.com> Date: Wed, 16 Apr 2025 23:18:01 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 343621d..3d960c5 100644 --- a/README.md +++ b/README.md @@ -421,4 +421,6 @@ Finally, touch and mouse event handling has been combined to improve sketch cons * `touchEnded()` * `touchMoved()` +In p5.js 2.0, instead of having separate methods for mouse and touch, we now use the browser's pointer API to handle both simultaneously. Try defining mouse functions as usual and accessing the global touches array to see what pointers are active for multitouch support! + All of the above usages in p5.js 1.x remain available with the [data.js](https://github.com/processing/p5.js-compatibility/blob/main/src/data.js) compatibility add-on library. From 1e5ab5d2df827033964bfc9600353750b104756f Mon Sep 17 00:00:00 2001 From: kit <1304340+ksen0@users.noreply.github.com> Date: Thu, 17 Apr 2025 16:54:22 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3d960c5..0d51275 100644 --- a/README.md +++ b/README.md @@ -374,16 +374,16 @@ function setup() { // Control points not needed // if the goal is a smooth close - // curveVertex(32, 91); - curveVertex(32, 91); + // splineVertex(32, 91); + splineVertex(32, 91); // Add the anchor points. - curveVertex(21, 17); - curveVertex(68, 19); + splineVertex(21, 17); + splineVertex(68, 19); // Second control point also excluded - // curveVertex(82, 91); - curveVertex(82, 91); + // splineVertex(82, 91); + splineVertex(82, 91); endShape(CLOSE); } ``` From 55f3ff8a8dc10b97d103dd951b0b50b234480a6d Mon Sep 17 00:00:00 2001 From: kit <1304340+ksen0@users.noreply.github.com> Date: Thu, 17 Apr 2025 20:14:21 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d51275..d6fa078 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +# 2.0 is 🌻 live 🌻 + +* The [full p5.js 2.0 reference is here](https://beta.p5js.org/) +* Interested in contributing? Check for [ready for work](https://github.com/orgs/processing/projects/21/views/8) issues! + # p5.js-compatibility Even as p5.js 2.0 becomes more stable, p5.js 1.x will continue to be supported until August, 2026. Between 1.x and 2.0, there are many additions, and some breaking changes. In addition to making p5.js 2.0 available as a library, we are working on preparing several compatibility add-on libraries that would make it possible to keep using 1.x features that are no longer part of 2.0. @@ -10,7 +15,9 @@ We are working on three compatibility add-on libraries which will make these 1.x 3. [data.js](https://github.com/processing/p5.js-compatibility/blob/main/src/data.js) -Your feedback is welcome [on this issue](https://github.com/processing/p5.js/issues/7488)! +These add-on libraries are available in the **p5.js Editor** in the Settings > Library Management modal: + +<img width="300" alt="image" src="https://github.com/user-attachments/assets/eb074d21-841a-4649-825c-eb95f7c3c488" /> # How to update p5.js code from 1.x to 2.0 From efc62d1300bfecc5899f3f06b90769443d52739a Mon Sep 17 00:00:00 2001 From: kit <1304340+ksen0@users.noreply.github.com> Date: Thu, 17 Apr 2025 20:14:53 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d6fa078..c8a44f4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ We are working on three compatibility add-on libraries which will make these 1.x These add-on libraries are available in the **p5.js Editor** in the Settings > Library Management modal: -<img width="300" alt="image" src="https://github.com/user-attachments/assets/eb074d21-841a-4649-825c-eb95f7c3c488" /> +<img width="300" alt="image" src="https://github.com/user-attachments/assets/eb074d21-841a-4649-825c-eb95f7c3c488" alt="Screenshot of the Settings model in p5.js Editor showing hte Library Management tab" /> # How to update p5.js code from 1.x to 2.0