tetris_ctm_summary icon indicating copy to clipboard operation
tetris_ctm_summary copied to clipboard

Clean up 'generate.py'

Open r002 opened this issue 3 years ago • 0 comments

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:

r002 avatar Mar 11 '21 21:03 r002