Open
Description
Topic
filter() was introduced in webgl mode in 1.8.0. At this time, it seems that filter() was still working even with noFill().
// version: 1.8.0
function setup() {
createCanvas(200,200,WEBGL);
}
function draw() {
background(0);
noFill();
stroke(255);
line(-100,-100,300,300);
filter(INVERT);
}
However, since 1.9.0, filter() does not work if noFill() is called. Of course it doesn't work with 1.11.2 either.
It will be drawn when you execute fill().
function setup() {
createCanvas(200,200,WEBGL);
}
function draw() {
background(0);
noFill();
stroke(255);
line(-100,-100,300,300);
fill(255);
filter(INVERT);
}
It seems nonsensical to have to call pointless fill() to filter a sketch that just draws lines.
But I don't know if this is a bug or not.
That's all for raising the issue.