Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ def generate_word_design(word, word_id, is_animated=False):
|
|
41 |
"'Orbitron', sans-serif",
|
42 |
"'Raleway', sans-serif",
|
43 |
"'Open Sans Condensed', sans-serif",
|
44 |
-
"'Poiret One', cursive",
|
45 |
"'Indie Flower', cursive",
|
46 |
"'Pacifico', cursive",
|
47 |
"'Teko', sans-serif"
|
@@ -57,11 +56,11 @@ def generate_word_design(word, word_id, is_animated=False):
|
|
57 |
word_color = "#000000" # All letters in original word are black
|
58 |
else:
|
59 |
# Animated state values
|
60 |
-
font_sizes = ["
|
61 |
-
font_tops = ["
|
62 |
-
letter_spacings = ["-
|
63 |
-
text_shadows = ["0px 0px
|
64 |
-
skew_angles = ["-
|
65 |
word_color = f"#{random.randint(0, 0xFFFFFF):06x}" # ONE color for the entire word
|
66 |
|
67 |
letters = list(word)
|
|
|
41 |
"'Orbitron', sans-serif",
|
42 |
"'Raleway', sans-serif",
|
43 |
"'Open Sans Condensed', sans-serif",
|
|
|
44 |
"'Indie Flower', cursive",
|
45 |
"'Pacifico', cursive",
|
46 |
"'Teko', sans-serif"
|
|
|
56 |
word_color = "#000000" # All letters in original word are black
|
57 |
else:
|
58 |
# Animated state values
|
59 |
+
font_sizes = ["18px", "19px", "20px"]
|
60 |
+
font_tops = ["0px", "1px", "-1px"]
|
61 |
+
letter_spacings = ["-1px", "0px", "1px", "2px"]
|
62 |
+
text_shadows = ["0px 0px 1px #000", "0px 0px 2px #000", "1px 0px 0px #000", "0px 0px 0px #000"]
|
63 |
+
skew_angles = ["-25deg", "-20deg", "-15deg", "-10deg", "0deg", "10deg", "15deg", "20deg", "25deg"]
|
64 |
word_color = f"#{random.randint(0, 0xFFFFFF):06x}" # ONE color for the entire word
|
65 |
|
66 |
letters = list(word)
|