Example #1
0
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
Example #2
0
def _opacify(color, amount, **kwargs):
    return rgba_op(OPRT['+'], color, 0, 0, 0, amount)
Example #3
0
def _transparentize(color, amount, **kwargs):
    return rgba_op(OPRT['-'], color, 0, 0, 0, amount)
Example #4
0
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
Example #5
0
def _transparentize(color, amount, **kwargs):
    return rgba_op(OPRT['-'], color, 0, 0, 0, amount)
Example #6
0
def _opacify(color, amount, **kwargs):
    return rgba_op(OPRT['+'], color, 0, 0, 0, amount)
Example #7
0
def _transparentize(color, amount, root=None):
    return rgba_op(OPRT['-'], color, 0, 0, 0, amount)
Example #8
0
def _opacify(color, amount, root=None):
    return rgba_op(OPRT['+'], color, 0, 0, 0, amount)