Implemented non-class versions of CopyColors() and SameColors()