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)
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)