tetris_ctm_summary
tetris_ctm_summary copied to clipboard
Clean up 'generate.py'
From yobi9's Discord comment on 3/10/21:
The entry file
generate.py
is a little dirty now. I added stuff into the file as we discovered issues and added features, so it's now one long procedural file. I don't think it's horrible, but some refactoring would be nice. In particular, the way text is drawn with PIL feels rather clunky. Handling the alignment (right and left align), different text colors, and spacing was a pain. There are probably some libraries out there would could abstract that away and make it easy? Maybe something to allow writing in html markup, rather than do everything by hand? Also,generate.py
doesn't even have a__main__
atm :sweat_smile: