Most appropriate sub-area of p5.js?
p5.js version
1.8.0
Web browser and version
Chrome
Operating System
Windows11
Steps to reproduce this
Steps:
- Apply filter(INVERT) to images with transparent background.
- Paste it onto an opaque canvas.
- The results obtained are different between 1.7.0 and 1.8.0.
Snippet:
function setup() {
createCanvas(400, 400);
let gr=createGraphics(100,100);
gr.textAlign(CENTER,CENTER);
gr.textSize(80);
gr.text("🦊",50,50);
gr.filter(INVERT);
background(128);
image(gr,100,100);
}
version 1.7.0

version 1.8.0

I'm going to report this as a bug, but I don't know if it can be considered a bug just because the behavior is different.