in chartify/_core/colour.py [0:0]
def __init__(self, color=None, pick_for=None, picker=RGB_color_picker, pick_key=hash_or_str, **kwargs):
if pick_key is None:
def pick_key(x):
return x
if pick_for is not None:
color = picker(pick_key(pick_for))
if isinstance(color, Color):
self.web = color.web
else:
self.web = color if color else "black"
self.equality = RGB_equivalence
for k, v in kwargs.items():
setattr(self, k, v)