When you select the range you want to change by dragging it with the mouse, 0 and 1 of the data in that range are inverted.