added color mixing function; switched leftColor and rightColor