New function: swapcolors