I can’t seem to find the thread about this, but another user wanted to have a thread exit out of processing pixels, and now I would like for this to be a thing too. As I was looking at my rep_mode and rep_mode_blend, I realized that if the number of a specific color is at least 1 more than half of the image dimension, then that is the most frequent color, and if I had something like exit(optional_return_value)
, I can stop the built-in loop and exit out. The funny thing is that I actually did something like this with copy() by mistake, and exit out. I don’t know how, but I’d definitely like to do that.
Use break()
:
Ex:
foo :
16,1,1,1,":
echo(t);
t>3?break();
echo(t,' bis');
"
This still continues processing pixel once x reaches 4. What I would like to have the option is to stop processing altogether.
Like for this case:
100000,1,1,1,u tic f. ">"if(x==3,break(););1
I would like to see pixels starting from 3 to have values that is not 1. Basically, terminates processing pixels, making every pixels after x==2 unchanged.