Skip to content

Fixes for filters on p5.Graphics#8792

Merged
davepagurek merged 2 commits into
dev-2.0from
fix/blur-graphics
May 13, 2026
Merged

Fixes for filters on p5.Graphics#8792
davepagurek merged 2 commits into
dev-2.0from
fix/blur-graphics

Conversation

@davepagurek
Copy link
Copy Markdown
Contributor

@davepagurek davepagurek commented May 13, 2026

Resolves #8790

Changes:

  • Makes sure FilterRenderer2D uses premultiplied alpha, like WebGL renderers do
  • Passes the renderer of the main canvas or graphic into the filter renderer to make sure the p5.Texture used in the filter runner is constructed correctly and updates correctly (it was never getting updated before on p5.Graphics)
  • Fixes a bug where some visual tests were using 2x density if run on a 2x density screen instead of being locked into 1x for all visual tests

Sketch showing this working on a 2D canvas + graphics: https://editor.p5js.org/davepagurek/sketches/GES8eMEdg

PR Checklist

@p5-bot
Copy link
Copy Markdown

p5-bot Bot commented May 13, 2026

Continuous Release

CDN link

Published Packages

Commit hash: 76ba137

Previous deployments

This is an automated message.

@davepagurek davepagurek merged commit f6ecf66 into dev-2.0 May 13, 2026
8 checks passed
@davepagurek davepagurek deleted the fix/blur-graphics branch May 13, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant