'This tiny program converts your screen graphic to a Notepad TextPicture.txt file automatically.
'I use a tiny 200 x 200 graphic window but feel free to change it. You will also need to change the loops below.
'Just remember, the larger the graphic, the bigger the text file. You can use the zoom feature on Notepad to zoom in and out to see it better.
'I don't suggest using a camera photo with this because they don't come out good I believe. I tried it.
'But feel free to do what you wish with this.
'Notice that ch$ has characters that go from brightest to least brightest. I found this list on the Internet.
'Also, since the vertical length is twice the length of the horizontal on Notepad, there may be parts of a graphic missing.
_TITLE "Graphic To Text Converter by SierraKen"
'---------------------------------------------------
'Draw anything you want here with graphic commands.
'Here are some boxes.
LINE (100 - t
, 100 - t
)-(100 + t
, 100 + t
), _RGB32(c1
, c2
, c3
), B
'---------------------------------------------------
ch$ = "'$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:,^`'. "
colors& = red& + green& + blue&
IF colors&
< 10 THEN colors&
= 10 letter$
= MID$(ch$
, INT(colors&
/ 10), 1)PRINT "TextPicture.txt saved."