Psuedo Code for Attributing Colours

Pseudo Code after chatting with Chris and Rob of how to attribute
colours to each simulated population with its unique SFH.