diff --git a/data/JPGHex.jpg b/data/JPGHex.jpg index ea47b9f..eb3f77d 100644 Binary files a/data/JPGHex.jpg and b/data/JPGHex.jpg differ diff --git a/data/result.jpg b/data/result.jpg deleted file mode 100644 index be9330f..0000000 Binary files a/data/result.jpg and /dev/null differ diff --git a/effects.pde b/effects.pde index 2d31342..5de1386 100644 --- a/effects.pde +++ b/effects.pde @@ -4287,7 +4287,7 @@ class JPGHEXGLITCH extends Shader { JPGHEXGLITCH() { name = "fxJPGHexGlitch"; params.add(new Param("byte amount to change probability", INTVAL, 2, 20, new int[]{RANDOM})); - params.add(new Param("iterations", INTVAL, 1, 10, new int[]{RANDOM})); + params.add(new Param("iterations", INTVAL, 2, 10, new int[]{RANDOM})); params.add(new Param("direction", INTVAL, 0, 3, new int[]{RANDOM})); directionParamIndex = 2; rw = canvas.width; @@ -4333,8 +4333,8 @@ class JPGHEXGLITCH extends Shader { } } //println("Glitched " + glitchCount + " bytes"); - saveBytes(dataPath("") + "/result.jpg", savebytes2); - img = loadImage(dataPath("") + "/result.jpg"); + saveBytes(dataPath("") + "/JPGHex.jpg", savebytes2); + img = loadImage(dataPath("") + "/JPGHex.jpg"); } canvas.endDraw();