Currently, All attributes and methods of Color return tuples or strings. It should be relatively simple to return namedtuples instead of simple tuples.
Why?
Namedtuple makes your tuples _self-document. You can easily understand what is going on by having a quick glance at your code._1
Currently, All attributes and methods of
Colorreturn tuples or strings. It should be relatively simple to return namedtuples instead of simple tuples.Why?
Namedtuple makes your tuples _self-document. You can easily understand what is going on by having a quick glance at your code._1