# Glitch FX (Processing Version)

**URL:** <https://discourse.processing.org/t/glitch-fx-processing-version/9254>\
**Category:** Gallery\
**Created:** [March 13, 2019, 12:21am UTC](https://discourse.processing.org/t/glitch-fx-processing-version/9254 "2019-03-13T00:21:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustinJohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/justinjohnson/32/192_2.png) [@JustinJohnson](https://discourse.processing.org/u/JustinJohnson)\
**Post date:** [March 13, 2019, 12:21am UTC](https://discourse.processing.org/t/glitch-fx-processing-version/9254/1 "2019-03-13T00:21:47Z")

</div>

Hey everyone,

I made (and still sort of in the process of) a fun sketch based off of my most popular OpenProcessing sketch (GlitchFX).

It includes some filters from the original to emulate glitch effects, and it’s fairly easy to use:

- Load your image
- 'G' to generate randomized effects.
- 'S' to save

_Samples generated from the sketch_

 ![test_1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/21310eebfcb4769097e05ec802ccb7c4fe3644fe.jpeg) ![test_2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a938a4335d0d57636d737e0c9869dfa0ffc22a43.jpeg)  
Still a work in progress and I’ll very likely add more filters + extra functionality in future revisions!  
[Find it on Github](https://github.com/anartisticengineer/Glitch-FX-Processing-Version)  
[Original sketch on Open Processing](https://www.openprocessing.org/sketch/617537)

---

<div class="post-metadata">

**Author:** ![eduzal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/eduzal/32/759_2.png) [@eduzal](https://discourse.processing.org/u/eduzal)\
**Post date:** [November 2, 2019, 5:59pm UTC](https://discourse.processing.org/t/glitch-fx-processing-version/9254/2 "2019-11-02T17:59:54Z")

</div>

i’ve been messing around with your code. i’m getting Array Out Of Bounds Error when it calls JPG Degrade.

tks

---

<div class="post-metadata">

**Author:** ![JustinJohnson](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/justinjohnson/32/192_2.png) [@JustinJohnson](https://discourse.processing.org/u/JustinJohnson)\
**Post date:** [November 7, 2019, 7:12pm UTC](https://discourse.processing.org/t/glitch-fx-processing-version/9254/3 "2019-11-07T19:12:52Z")

</div>

Hi,

I noticed the error too when I ran it a few times but couldn’t originally find where it was located. I actually found that it came from the ‘noisy’ function and not the JPG Degrade (cause the JPG Degrade function doesn’t even use arrays). I may find another way to implement it in the future, but in the mean time, I just bypassed the function which should hopefully eliminate that error. Hope that helps!
