Wavelength discrimination with a chromatically alternating stimulus