diff --git a/source/mkw/collection/MKWColor.py b/source/mkw/collection/MKWColor.py index e7b8b48..383cb94 100644 --- a/source/mkw/collection/MKWColor.py +++ b/source/mkw/collection/MKWColor.py @@ -42,6 +42,9 @@ class MKWColor: """ return f'{self.raw}{text}{get(bmg="off").raw}' + def __matmul__(self, other: str) -> str: # the operator @. Example : MKWColor.get(bmg="white") @ "text_to_color" + return self.color_text(other) + all_colors: list[MKWColor] = [ MKWColor(bmg="white", hexadecimal=0xFFFFFF, name="white"),