Trying a 2D Markov chain with an image. The source image (left) is sampled as 3*2-pixel windows. The output image (right) is randomly generated pixel by pixel, first right, then down, by choosing from the likely colours to appear at the bottom right of the current window.
The program falls back to a hard-coded colour (here, light grey) if the previously-generated window doesn't match anything in the input data. (The program isn't ready for release yet.)
