function preload() { img = loadImage('assets/bricks.jpg'); } function setup() { image(img, 0, 0); filter(THRESHOLD); }