I defined self, I don’t see any error in sync, what do you guys think the error is?
class colormac():
def __init__(self, color, elmnt=None):
if isinstance(color, dict):
self.attachValues(color)
else:
self.attachValues(toColorObject(color))
if elmnt:
elmnt.style.backgroundColor = self.to_rgb_string()
bockColor= colorcat.colormac("rgb(0, 191, 255)")
TypeError: colormac() takes no arguments
New contributor
Moz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.