app.util package
app.util.image_generator module
-
class app.util.image_generator.TextSpec
Bases: TypedDict
-
font_size: int
-
italic: bool
-
position: tuple[int, int]
-
text: str
-
app.util.image_generator.generate_image(size: tuple[int, int], background_color: str, texts: list[TextSpec]) → Image
Module contents
-
class app.util.TextSpec
Bases: TypedDict
-
font_size: int
-
italic: bool
-
position: tuple[int, int]
-
text: str
-
app.util.generate_image(size: tuple[int, int], background_color: str, texts: list[TextSpec]) → Image