xxxxxxxxxx
20
// Ignore the initial error: TypeError: Cannot read properties of undefined (reading '_report'); the web editor is expecting the p5.js lib to be loaded normally
//
// Build last updated: Aug 11, shader-filters branch
function preload() {
img = loadImage('bricks.jpg') // bricks.jpg
}
function setup() {
createCanvas(200, 200)
// img.resize(200,200)
}
function draw() {
// feedback effect when not clearing background
clear()
image(img, 0, 0)
// change this line to compare between old and new filters
filter(BLUR, 2, useWebGL=false)
}