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