change function setColorsAndAlphas