From d96256c5c051c17c06f4d1eeb1214c8fdf5deb9c Mon Sep 17 00:00:00 2001 From: Lev Date: Mon, 2 Aug 2021 18:31:45 -0500 Subject: [PATCH] Update corrected the name of the threshold function --- .../Week 15/3 Threshhold filter/sketch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CM2030 Graphics Programming/Week 15/3 Threshhold filter/sketch.js b/CM2030 Graphics Programming/Week 15/3 Threshhold filter/sketch.js index d76d8c1..07133be 100644 --- a/CM2030 Graphics Programming/Week 15/3 Threshhold filter/sketch.js +++ b/CM2030 Graphics Programming/Week 15/3 Threshhold filter/sketch.js @@ -14,11 +14,11 @@ function setup() { function draw() { background(255, 0, 255); image(imgIn, 0, 0); - image(grayScaleFilter(imgIn), imgIn.width, 0); + image(thresholdFilter(imgIn), imgIn.width, 0); //noLoop(); } -function grayScaleFilter(img) { +function thresholdFilter(img) { imgOut = createImage(img.width, img.height); imgOut.loadPixels(); img.loadPixels();