The relationship between taking Viagra and problems with colour perception are well documented. It affects the blue/green perception hence the warning not only not to take it before you go and see your AME but also not to take it 6 before you go and fly.
FD