textgen: Generate CREDIT screen.

This is one of the screens of text shown between demos in the demo
loop. Generate this from the contents of a static text file. I
originally wanted to generate this programatically from the CREDITS
file but there are too many contributors to fit them all on the page.
This commit is contained in:
Simon Howard 2014-09-07 05:25:12 +00:00
parent 9968fe0ed1
commit 7a1b49e965
5 changed files with 43 additions and 2 deletions

View file

@ -154,6 +154,11 @@ command_line = [
]
for xy, string in args['strings']:
# Allow contents of a file to be included with special prefix:
if string.startswith('include:'):
with open(string[8:]) as f:
string = f.read()
# Allow special notation to indicate an image file to just draw
# rather than rendering a string.
if string.startswith('file:'):