Fixes for skintone generation (old Python version)

This commit is contained in:
Constantin A 2021-06-17 21:30:54 +02:00
parent d2da4e0311
commit 1bedf7e618
3 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ class Emoji:
# This is the case for gender symbols which should be represented as emojis and not as characters # This is the case for gender symbols which should be represented as emojis and not as characters
fe0f_chars = {'', ''} fe0f_chars = {'', ''}
color_regex = re.compile("#([a-f0-9]{6,7})|rgb\(([0-9]{1,3},[0-9]{1,3},[0-9]{1,3})\)", re.IGNORECASE) color_regex = re.compile("#?([a-f0-9]{6,7})|rgb\(([0-9]{1,3},[0-9]{1,3},[0-9]{1,3})\)", re.IGNORECASE)
def __init__(self, modifiers: dict, path: str, base: str, end: bool = False): def __init__(self, modifiers: dict, path: str, base: str, end: bool = False):
""" """

View file

@ -13,6 +13,8 @@
"shadow_3": "#e59600", "shadow_3": "#e59600",
"shadow_4": "#e8a23d", "shadow_4": "#e8a23d",
"shadow_5": "#e28c25", "shadow_5": "#e28c25",
"shadow_6": "#ffa000",
"shadow_7": "#ff8f00",
"ear": "#e39400", "ear": "#e39400",
"hair": "#6d4c41", "hair": "#6d4c41",
"hair_beard": "#6d4c41", "hair_beard": "#6d4c41",

View file

@ -8,7 +8,7 @@
"shadow": "#dba689", "shadow": "#dba689",
"ear": "#dba689", "ear": "#dba689",
"hair": "#312d2d", "hair": "#312d2d",
"hair_beard": "212121", "hair_beard": "#212121",
"pullover": "#00bfa5" "pullover": "#00bfa5"
} }
} }