// ChangeColors // This macro changes the value of pixels in the image // or selection that are in the foreground color to the // background color. Use Edit>Undo to revert back to // the original. macro "Change Colors" { setupUndo(); foreground = getValue("color.foreground"); background = getValue("color.background"); //print(foreground, background); changeValues(foreground, foreground, background); }