I’m trying to generate a static image with a blurred background and some unblurred text in front of it.
Here’s my code
void drawIt() {
background(0);
strokeWeight(4);
pushMatrix();
for (int j=0; j<20; j++) {
for (int i=0; i<20; i++) {
fill(150, random(200), 30);
stroke(150, random(200), 30);
line(random(width), random(height), random(width), random(height));
}
filter(BLUR);
rotate(j*0.4);
}
popMatrix();
fill(255,255,255,255);
stroke(255,255,255,255);
textSize(48);
text(name, 40, 100);
}
It’s doing what I’d expect, EXCEPT that the text which I think I’m drawing at the end, is a) blurry, and b) seems to be BEHIND some of the lines I’m drawing.
I’m mystified by this. Never seen anything like it before.
This is all happening within a single frame and the image is saved directly afterwards