Ordered Pixel Generator

The randomness of the random pixel generator was necessary in order to riff on the idea of the infinite monkey theorem. In order to be more practical, an ordered pixel generator was created to eliminate duplicates. The ordered pixel generator creates every image possible from a given number of colors at a given width and height.

Below is an image that illustrates all combinations of black and white in a 3×3 pixel cell. This is 2^9 or 512 combinations.


The ordered pixel generator can create all combinations from any cell dimensions and any color palette, but larger than this with an increased palette yields more combinations than can easily be displayed as a single image.