AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
The sketch generates a new random color for the randomColor variable before glitching any pixels and each time a pixel is not glitched. This type of structure will result in lines of glitched pixels, rather that just randomly positioned glitched pixels, which ends up looking like static. It also keeps track of whether or not the previous pixel was glitched by setting the previousPixelGlitched variable to true or false, if it was, there’s a higher chance that the code will glitch the current pixel. For each pixel in the image the script generates some random numbers to determine whether or not to glitch that pixel. In the simple glitch sketch we’re doing a little more. In the script, which are referred to as sketches in Processing, you’ll need to change the following lines to point the script at the image you want to pixel sort: // image path is relative to sketch directory I’ve written a simple script you can download here, you’ll have to unzip it once it’s downloaded. Once you’ve installed and opened Processing you can load the script by accessing the menu.Īnd navigating to the SimpleGlitch.pde script file. To get started download and install the latest version of Processing, version 3.1.1 at the time of writing this.
0 Comments
Read More
Leave a Reply. |