Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/content/text-detail/en/download.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import LinkButton from '../../../components/LinkButton/index.astro'
import CodeContainerWithCopy from "../../../components/CodeContainer/CodeContainerWithCopy.astro";
import {
cdnLibraryUrl,
cdnSoundUrl,
fullDownloadUrl,
libraryDownloadUrl,
minifiedLibraryDownloadUrl,
Expand All @@ -21,8 +22,7 @@ This link redirects you to the p5.js Editor online so you can begin using p5.js
<LinkButton variant='link' url={`https://editor.p5js.org?version=${p5Version}`}> p5.js Editor </LinkButton>

### Download the Complete Library
This is a download containing the p5.js library file, the p5.sound addon, and an example project. It does not contain an editor. Visit [Get Started](/tutorials/get-started) to learn how to setup a p5.js project.

This is a download containing the p5.js library file and an example project. It does not contain an editor. If this download includes a p5.sound.js file, please disregard it — it is an outdated version incompatible with p5.js 2.x. See below for up-to-date sound support instructions.
<LinkButton variant='download' url={fullDownloadUrl}> Complete Library </LinkButton>

### Download Single Files
Expand All @@ -33,6 +33,11 @@ These are downloads or links to the p5.js library file. No additional contents a
<LinkButton variant='download' url={minifiedLibraryDownloadUrl}> p5.min.js </LinkButton>
</div>

### Sound Support with p5.sound.js
p5.sound.js is maintained as a separate library from p5.js. If your sketch needs sound, add p5.sound.js to your project **in addition to** p5.js using the CDN link below, or visit [p5.sound.js on jsDelivr](https://www.jsdelivr.com/package/npm/p5.sound) for other versions and download options.

<CodeContainerWithCopy>{cdnSoundUrl}</CodeContainerWithCopy>

## Use p5.js from CDN

All versions of p5.js are hosted on a content delivery network (CDN), a geographically distributed group of servers. There are a couple different ways to access the JavaScript library from your code editor.
Expand All @@ -51,4 +56,4 @@ Use the following URL if you'd like to ensure that you're always accessing the l

### Other Versions of p5.js

If you'd like to access an earlier version of p5.js, you can look up the corresponding URL on [p5.js' jsDelivr webpage](https://www.jsdelivr.com/package/npm/p5).
If you'd like to access an earlier version of p5.js, you can look up the corresponding URL on [p5.js' jsDelivr webpage](https://www.jsdelivr.com/package/npm/p5).