COLORS, LUMINOSITIES, AND MASSES OF DISK GALAXIES .2. ENVIRONMENTAL DEPENDENCIES