Comment
Comment by jdswain
Could be worth looking at graph theory and graph colouring algorithms. Also maybe a Turing machine with colours instead of symbols, you could hand execute the state machine and end up with coloured patterns or even a Lo-res picture.