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.
Thanks for the suggestions! I've marked them in my notes. Graph coloring algorithms seems like a no-brainer and I really like the idea of state machines. Cheers