Pixel Swapper

This sketch rearranges the pixels in an image. Every frame, it chooses a random pixel, and swaps it with another random pixel.


This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/images/pixel-swapper

Hi again!

Was wondering if there was a way to make it so the sketch updates in very slow increments; say, one pixel swap per day. Any ideas?

Thank you!!!

The first thing I would do is check out the p5.js reference. Can you maybe find a function that lets you set the framerate? :smiley_cat: