Changed colours to use hex, and colour generation to be a hash function