Pixel sorting and image processing algorithm inspired heavily by @kimasendorf, but goes a step further and implements random color mutations to the pixel sorting. This further distorts the image, leading to different effects per usage.
- Select the file name and the extension
String imgFileName = "FullSizeRender";
String fileType = "jpg";
- Enter the correct dimensions
img = loadImage(imgFileName+"."+fileType);
size(749,1087);
- Set the mode to 0,1 or 2
int mode = 2;
- (Optional) Adjust the values following default values
int blackValue = -13000000;
int brigthnessValue = 140;
int whiteValue = -10000000;
All of these images were made using default values.