Exemplo n.º 1
0
 def match(self, color: Color, ansi=False) -> ColorPoint:
     lum = map_interval(0, 1, .2, 1, color.get_luminance())
     color.set_luminance(lum)
     return super().match(color)
Exemplo n.º 2
0
 def match(self, color: Color, ansi=False) -> ColorPoint:
     lum = map_interval(0, 1, .3, .9, color.get_luminance())
     color.set_luminance(lum)
     sat = map_interval(0, 1, .2, .9, color.get_saturation())
     color.set_saturation(sat)
     return super().match(color)