Open
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
just-be-dev | f2d558c | Mar 18 2026, 09:34 AM |
75fe94d to
3498678
Compare
3498678 to
f2d558c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.11.3→^2.0.0Release Notes
processing/p5.js (p5)
v2.2.2Compare Source
What's Changed
This patch focuses on bugfixes, particularly on WebGPU performance and p5.strands. The goal is that all p5.strands shaders work with both WebGPU and WebGL canvases. This patch also adds
millis()support inside strands code.To use this patch, you can use this starter sketch!
Or load both p5.js and WebGPU mode by adding these two script tags to your sketch:
Then load WebGPU mode in
createCanvas- note theasync/await, this is needed for WebGPU but not WebGL:If you take any existing sketch, such as from the intro to strands tutorial, iyou can switch from
WEBGLtoWEBGPU(async/awaitwill be needed!)Read more about how the WebGPU-based renderer works and where we plan on taking it here!
millis()supported in p5.strandsHere is a sketch (thanks @perminder-17!) showing
millis()being used inside a strands shader. Previously,const t = uniformFloat(() => millis());was needed. This can still be used, but you can instead usemillis()directly:What does p5.strands make possible?
(Special thanks to @davepagurek for creating the sketches! Excerpted from a blog post about 2.2 updates.)
First, consider this sketch, which uses JavaScript loops to draw a cube of cubes. It is only 40 lines, but if there are many more cubes, it will slow down very much. If it is running smoothly, try changing all the “15” to a higher and higher number, such as “30.” As the scene grows, the sketch performance will suffer very noticeably.
The purpose of shader is to use parallel, GPU-based computation to speed this up. Instead of for loops, here is a second version of the same sketch using GLSL. It is 200 lines of code, and, if you are not familiar with GLSL, may be very difficult to read. Look for the “15” here, too, and try changing it to a larger number, like “30” or beyond. The shader-based animation remains smooth, showing the performance benefits of GPU rendering.
Finally, the p5.strands version of this sketch combines a more accessible, readable style of JavaScript with the performance of GLSL.
With the introduction of the WebGPU-based renderer, p5.strands sketches can seamlessly switch between
WEBGLorWEBGPUrenderer. Here is the same example as above, but using the WebGPU-based renderer. The only changes needed were to useasync/awaitwithcreateCanvas(...), and to import both the main library and the p5.webgpu.js add-on:All Changes
New Contributors
Stewards
Code review and additional support with testing the release candidates by:
Full Changelog: processing/p5.js@v2.2.1...v2.2.2
v2.2.1Compare Source
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:
Then load WebGPU mode in
createCanvas:Read more about how it works and where we plan on taking it here!
What's Changed 🎊
noiseDetail()in p5.js 2.x so that thefalloffparameter defaults to0.5when omitted. by @shuklaaryan367-byte in #8417@chainableper-overload by @LuLaValva in #8504New Contributors
Stewards
This patch was stewarded (through code review, comments, and discussion) by
@davepagurek
@limzykenneth
@nbogie
@perminder-17
@ksen0
Full Changelog: processing/p5.js@v2.2.0...v2.2.1
v2.2.0Compare Source
2.2: WebGPU and bugfixes
The
2.2minor release contains work on WebGPU rendering that has been going on over the past year! WebGPU mode is included in a core add-on now. This release also contains a number of improvements in documentation and p5.strands bugfixes.To load both p5.js and WebGPU mode, add these two script tags to your sketch:
Then load WebGPU mode in
createCanvas:Read more about how it works and where we plan on taking it here!
You're also welcome to come by the Discord #webgpu channel 🌱
What's Changed 🎊
.apply()for faster function invocation by @limzykenneth in #8332inputsin branches in p5.strands by @davepagurek in #8397New Contributors
Full Changelog: processing/p5.js@v2.1.2...v2.2.0
v2.1.2Compare Source
What's Changed
Use this link to load the library: https://cdn.jsdelivr.net/npm/p5@2.1.2/lib/p5.js
This patch includes documentation updates, bugfixes, and improvements on the experimental p5.strands feature.
What's Changed 🎊
New Contributors
Full Changelog: processing/p5.js@v2.1.1...v2.1.2
v2.1.1Compare Source
Use this link to load the library: https://cdn.jsdelivr.net/npm/p5@2.1.1/lib/p5.js
What's new in p5.js 2.1 🌱
if/elseand loopingforoneColor.contrast(anotherColor)checks the contrast between two colors. This method returns a boolean value to indicate if the two color has enough contrast.truemeans that the colors has enough contrast to be used as background color and body text color.falsemeans there is not enough contrast.A second argument can be passed to the method,
options, which defines the algorithm to be used. The algorithms currently supported are WCAG 2.1 ('WCAG21') or APCA ('APCA'). The default is WCAG 2.1. If a value of'all'is passed to theoptionsargument, an object containing more details is returned. The details object will include the calculated contrast value of the colors and different passing criteria.For more details about color contrast, you can check out this page from color.js, and the WebAIM color contrast checker.
Changes since 2.0 🎊
codein the refrence. by @perminder-17 in #7902hue(),saturation(),brightness()andlightness()by @limzykenneth in #8062describe()Usage by @NalinDalal in #8101AGENTS.md[dev-2.0 branch] by @ksen0 in #8249New Contributors
Full Changelog: processing/p5.js@v2.0.0...v2.1.1
v2.1.0Compare Source
Use this link to load the library: https://cdn.jsdelivr.net/npm/p5@2.1.0/lib/p5.js
What's new in p5.js 2.1 🌱
if/elseand loopingforoneColor.contrast(anotherColor)checks the contrast between two colors. This method returns a boolean value to indicate if the two color has enough contrast.truemeans that the colors has enough contrast to be used as background color and body text color.falsemeans there is not enough contrast.A second argument can be passed to the method,
options, which defines the algorithm to be used. The algorithms currently supported are WCAG 2.1 ('WCAG21') or APCA ('APCA'). The default is WCAG 2.1. If a value of'all'is passed to theoptionsargument, an object containing more details is returned. The details object will include the calculated contrast value of the colors and different passing criteria.For more details about color contrast, you can check out this page from color.js, and the WebAIM color contrast checker.
Changes since 2.0 🎊
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.