Implement colour flipping