def adjust(color, attribute, percent):
 (r, g, b, a, type) = parse_color(color)
 (r, g, b) = hsl_to_rgb(*_adjust(rgb_to_hsl(r, g, b), attribute, percent))
 return unparse_color(r, g, b, a, type)

def adjust ( color , attribute , percent ) : ( r , g , b , a , type ) = parse_color ( color ) ( r , g , b ) = hsl_to_rgb ( * _adjust ( rgb_to_hsl ( r , g , b ) , attribute , percent ) ) return unparse_color ( r , g , b , a , type )
adjust an attribute of color by a percent .