コード例 #1
0
 def calc_density(self, density_standard=None):
     """
     Calculates the density of the SpectralColor. By default, Status T
     density is used, and the correct density distribution (Red, Green,
     or Blue) is chosen by comparing the Red, Green, and Blue components of
     the spectral sample (the values being red in via "filters").
     """
     if density_standard != None:
         return density.ansi_density(self, density_standard)
     else:
         return density.auto_density(self)
コード例 #2
0
 def calc_density(self, density_standard=None):
     """
     Calculates the density of the SpectralColor. By default, Status T
     density is used, and the correct density distribution (Red, Green,
     or Blue) is chosen by comparing the Red, Green, and Blue components of
     the spectral sample (the values being red in via "filters").
     """
     if density_standard is not None:
         return density.ansi_density(self, density_standard)
     else:
         return density.auto_density(self)