def _complement(color, **kwargs): return hsl_op(OPRT['+'], color, 180.0, 0, 0)
def _adjust_saturation(color, amount, **kwargs): return hsl_op(OPRT['+'], color, 0, amount, 0)
def _lighten(color, amount, **kwargs): return hsl_op(OPRT['+'], color, 0, 0, amount)
def _desaturate(color, amount, **kwargs): return hsl_op(OPRT['-'], color, 0, amount, 0)
def _scale_lightness(color, amount, **kwargs): return hsl_op(OPRT['*'], color, 0, 0, amount)
def __asc_color(op, color, saturation, lightness, red, green, blue, alpha): if lightness or saturation: color = hsl_op(op, color, 0, saturation, lightness) if red or green or blue or alpha: color = rgba_op(op, color, red, green, blue, alpha) return color
def _desaturate(color, amount, root=None): return hsl_op(OPRT['-'], color, 0, amount, 0)
def _adjust_lightness(color, amount, **kwargs): return hsl_op(OPRT['+'], color, 0, 0, amount)
def _lighten(color, amount, root=None): return hsl_op(OPRT['+'], color, 0, 0, amount)
def _darken(color, amount, root=None): return hsl_op(OPRT['-'], color, 0, 0, amount)
def _adjust_hue(color, degrees, root=None): return hsl_op(OPRT['+'], color, degrees, 0, 0)
def _scale_saturation(color, amount, root=None): return hsl_op(OPRT['*'], color, 0, amount, 0)
def _scale_lightness(color, amount, root=None): return hsl_op(OPRT['*'], color, 0, 0, amount)
def _scale_saturation(color, amount, **kwargs): return hsl_op(OPRT['*'], color, 0, amount, 0)
def _grayscale(color, root=None): return hsl_op(OPRT['-'], color, 0, 1.0, 0)
def _adjust_saturation(color, amount, root=None): return hsl_op(OPRT['+'], color, 0, amount, 0)
def _complement(color, root=None): return hsl_op(OPRT['+'], color, 180.0, 0, 0)
def _saturate(color, amount, **kwargs): return hsl_op(OPRT["+"], color, 0, amount, 0)
def _adjust_hue(color, degrees, **kwargs): return hsl_op(OPRT['+'], color, degrees, 0, 0)
def _darken(color, amount, **kwargs): return hsl_op(OPRT['-'], color, 0, 0, amount)
def _grayscale(color, **kwargs): return hsl_op(OPRT['-'], color, 0, 100, 0)
def _adjust_lightness(color, amount, root=None): return hsl_op(OPRT['+'], color, 0, 0, amount)