We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi I was just wondering if there was a way of setting how many times something can be blurred during void draw() - at the moment my sketch blurs the (animated) line more and more until eventually the background becomes black. If someone could point me in the right direction then that would be great. Thanks
Answers
Just use a variable that keeps track of how many times the blurring has occurred, and only perform the blurring if that variable is under some threshold.
Any on advice on how to do this? Would I use an if/else statement and a boolean?
Thanks
Yep. What happened when you tried that? Here is some pseudocode to get you started:
I was probably putting it in the wrong place so it was just doing the same thing, i'll give it shot with your pseudocode though, thanks!
Okay so what is happening now is the first 10 lines (int bluttedMax = 10); are being blurred and then it stops.
I think it could be because I am using:
x++;
Can you post your code in the form of an MCVE instead of a disconnected snippet?
That is way too much code. You should be trying to isolate your problem, as that's the first step of debugging. You also seem to have commented out the filter() function, so I'm not sure what this is supposed to do.