Exemple #1
0
def _complement(color, **kwargs):
    return hsl_op(OPRT['+'], color, 180.0, 0, 0)
Exemple #2
0
def _adjust_saturation(color, amount, **kwargs):
    return hsl_op(OPRT['+'], color, 0, amount, 0)
Exemple #3
0
def _lighten(color, amount, **kwargs):
    return hsl_op(OPRT['+'], color, 0, 0, amount)
Exemple #4
0
def _desaturate(color, amount, **kwargs):
    return hsl_op(OPRT['-'], color, 0, amount, 0)
Exemple #5
0
def _scale_lightness(color, amount, **kwargs):
    return hsl_op(OPRT['*'], color, 0, 0, amount)
Exemple #6
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
def _desaturate(color, amount, root=None):
    return hsl_op(OPRT['-'], color, 0, amount, 0)
Exemple #8
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)
Exemple #14
0
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)
Exemple #18
0
def _adjust_saturation(color, amount, **kwargs):
    return hsl_op(OPRT['+'], color, 0, amount, 0)
Exemple #19
0
def _saturate(color, amount, **kwargs):
    return hsl_op(OPRT["+"], color, 0, amount, 0)
Exemple #20
0
def _scale_saturation(color, amount, **kwargs):
    return hsl_op(OPRT['*'], color, 0, amount, 0)
Exemple #21
0
def _adjust_hue(color, degrees, **kwargs):
    return hsl_op(OPRT['+'], color, degrees, 0, 0)
Exemple #22
0
def _adjust_hue(color, degrees, **kwargs):
    return hsl_op(OPRT['+'], color, degrees, 0, 0)
Exemple #23
0
def _lighten(color, amount, **kwargs):
    return hsl_op(OPRT['+'], color, 0, 0, amount)
Exemple #24
0
def _darken(color, amount, **kwargs):
    return hsl_op(OPRT['-'], color, 0, 0, amount)
Exemple #25
0
def _darken(color, amount, **kwargs):
    return hsl_op(OPRT['-'], color, 0, 0, amount)
Exemple #26
0
def _grayscale(color, **kwargs):
    return hsl_op(OPRT['-'], color, 0, 100, 0)
Exemple #27
0
def _desaturate(color, amount, **kwargs):
    return hsl_op(OPRT['-'], color, 0, amount, 0)
Exemple #28
0
def _adjust_lightness(color, amount, **kwargs):
    return hsl_op(OPRT['+'], color, 0, 0, amount)
Exemple #29
0
def _grayscale(color, **kwargs):
    return hsl_op(OPRT['-'], color, 0, 100, 0)
Exemple #30
0
def _scale_lightness(color, amount, **kwargs):
    return hsl_op(OPRT['*'], color, 0, 0, amount)
Exemple #31
0
def _complement(color, **kwargs):
    return hsl_op(OPRT['+'], color, 180.0, 0, 0)
Exemple #32
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
def _adjust_lightness(color, amount, root=None):
    return hsl_op(OPRT['+'], color, 0, 0, amount)