Visual Poem (PDF,PNG) Generation (pdf.py)¶
These functions allow for the creation of all currently supported types of visual poems.
-
class
generativepoetry.pdf.
VisualPoemString
(text, x: int, y: int, font: str, font_size: int, rgb: Optional[Tuple] = None)¶ The text drawn by reportlab at an XY coordinate–can be a line, a word, or just a character.