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 _opacify(color, amount, **kwargs): return rgba_op(OPRT['+'], color, 0, 0, 0, amount)
def _transparentize(color, amount, **kwargs): return rgba_op(OPRT['-'], color, 0, 0, 0, amount)
def _transparentize(color, amount, root=None): return rgba_op(OPRT['-'], color, 0, 0, 0, amount)
def _opacify(color, amount, root=None): return rgba_op(OPRT['+'], color, 0, 0, 0, amount)