How does the color altering function work?