Vertical Pixel Sorting on image

Well, like I said, this is not sorting. The pixels are not sorted; they are not re-sorted. This is streaking.

If that is what you want, then to animate you can could change the parameter periodically at the top of draw.

For example, this decreases the minThreshold every second until it reaches 5:

void draw() {
  if(frameCount%60 == 1) {
    minThreshold = max(minThreshold - 5, 0);
  }

  // ...

}
1 Like