Download Latest Version p5.zip (1.2 MB)
Email in envelope

Get an email when there's a new version of p5.js

Home / v2.2.1
Name Modified Size InfoDownloads / Week
Parent folder
p5.esm.js 2026-02-11 4.2 MB
p5.js 2026-02-11 4.4 MB
p5.min.js 2026-02-11 952.6 kB
p5.zip 2026-02-11 5.2 MB
README.md 2026-02-11 5.4 kB
v2.2.1 source code.tar.gz 2026-02-11 17.4 MB
v2.2.1 source code.zip 2026-02-11 18.3 MB
Totals: 7 Items   50.4 MB 0

What's Changed

This patch includes documentation, bugfixes, and dependency updates. A flatter p5.strands API is also included as part of ongoing incremental strands API.

You can get started with the features in this release using these sketches:

The focus of this patch is performance improvements to WebGPU core add-on. You can load both p5.js and WebGPU mode by adding these two script tags to your sketch:

:::html
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.1/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.1/lib/p5.webgpu.js"></script>

Then load WebGPU mode in createCanvas:

:::js
async function setup() {
  await createCanvas(400, 400, WEBGPU);
}

Read more about how it works and where we plan on taking it here!

What's Changed 🎊

New Contributors

Stewards

This patch was stewarded (through code review, comments, and discussion) by @davepagurek
@limzykenneth @nbogie @perminder-17 @ksen0

Full Changelog: https://github.com/processing/p5.js/compare/v2.2.0...v2.2.1

Source: README.md, updated 2026-02-11