Skip to content

Commit 5615692

Browse files
authored
Added links
1 parent 88605f3 commit 5615692

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ Your feedback is welcome [on this issue](https://github.com/processing/p5.js/iss
1818

1919
Most things are the same between p5.js 1.x and 2.0, but there are some big differences: p5.js 2.0 has new capabilities, and it also no longer supports some aspects of p5.js 1.x.
2020

21-
## Do I have to update my 1.x sketches? Maybe!
21+
## Do I have to update my 1.x sketches?
2222

2323
First, you should try to update the version and see if the sketch still runs! In many cases, no actions are needed - just update the version and you’re all set.
2424

2525
However, if the sketch doesn’t run anymore using 2.0, then you can either update it to use 2.0, or keep it using 1.x. If any of this sounds applicable, then follow the guide below to update your sketches:
2626

2727
* If you want to use p5.js 2.0 features, like variable-weight fonts
28-
* If you need your sketches to work after August, 2026. At that point, 1.x will no longer be supported, and 2.0 will become the default in the p5.js Editor. If you face any challenges in making updates, please consider joining the discussion and filing bugs to help make p5.js 2.0 a robust tool for the whole community.
28+
* If you need your sketches to work after August, 2026. At that point, 1.x will no longer be supported, and 2.0 will become the default in the p5.js Editor. If you face any challenges in making updates, please consider [joining the discussion](https://github.com/processing/p5.js/issues/7488) and [filing bugs](https://github.com/processing/p5.js/issues) to help make p5.js 2.0 a robust tool for the whole community.
2929
* If you want to use an addon or community library that uses p5.js 2.0 featurescal
3030
* If you want to be able to better integrate with other tools and libraries in the JavaScript ecosystem
3131

32-
## How can I update my 1.x sketches? Three steps!
32+
## How can I update my 1.x sketches?
3333

3434
Step 1: Switch to 2.0 by using one of the [beta releases](https://github.com/processing/p5.js/releases/) when you import the core library! An [option to switch to 2.0 will be available in the p.js Editor](https://github.com/processing/p5.js-web-editor/pull/3334) once the new release is live!
3535

@@ -40,9 +40,9 @@ Step 3: If your 1.x sketch does not run with p5.js 2.0, you have two options:
4040
* Update your code to match 2.0
4141
* or (2) Include a compatibility addon (after release, [this will also be possible in the p.js Editor](https://github.com/processing/p5.js-web-editor/pull/3334) once the new release is live.
4242

43-
# Changes to make if you are
43+
# Changes to make if your sketch includes
4444

45-
## …loading Images, Sound, Fonts, and other Assets
45+
## …loading images, sound, fonts, and other assets
4646

4747
One of the biggest changes in 2.0 is involves how you can include other files, media, and assets. The p5.js 1.x style of using `preload()` does not reflect anymore how assets are loaded on the web, so p5.js 2.0 uses JavaScript’s async/await keywords to support asynchronicity.
4848

@@ -92,11 +92,11 @@ async function setup() {
9292
}
9393
```
9494

95-
## …making Shapes
95+
## …making shapes
9696

9797
Short guide coming soon! For now, you can [find out more here](https://github.com/processing/p5.js/issues/6766)
9898

99-
## …using non-JS Data Structures
99+
## …using non-JavaScript data structures and functions
100100

101101
One bit change relates to data structures in JavaScript. The following funcitons have been removed in p5.js 2.0. These were originally in p5.js 1.x because, historically, they were also in Processing. However, p5.js is a JavaScript library, and JavaScript objects and key-value maps can be used instead of these functions:
102102

0 commit comments

Comments
 (0)