Function colorOf