htmlcolor.py - Add HTML color names
Add 140 html color names in a new module named htmlcolor
, inheriting from color
.
E.g.
from color import Color
from htmlcolor import HtmlColor
def test_htmlcolor():
c1 = Color.MAGENTA
print(c1)
c2 = HtmlColor.FUCHSIA
print(c2)
assert c1 == c2
Replaces https://git.card10.badge.events.ccc.de/card10/firmware/merge_requests/23