Ported the color generation to the new format