bradgrantham-apple2e/bitmap_to_basic.py

13 lines
224 B
Python
Raw Normal View History

2018-06-06 19:15:58 +00:00
import sys
print "5 HGR : HCOLOR=3"
num = 10
row = 0
for line in sys.stdin:
for b in xrange(0, 40):
if line[b * 2] == '*':
print "%d HPLOT %d, %d" % (num, b, row)
num += 10
row += 1