The visual appearance of comets under varying solar wind conditions