Convert a modern image file (jpg, png, etc) into a TRS80 BASIC program to reproduce the image on a TRS80 (low-res, black and white).
Allows for source image pan, zoom, and output image contrast adjustment.
Written as an entry into Dusty's www.trs-80.org.uk 2018 Competition: HI-RES-LO
Target is a TRS80 Model III, LDOS 5.3.1, and Misosys LBASIC.
- v1.5
- Added (I)nvert colors option
- Added .tim (TRS Image file) output file for use with TRS-80 Screen Designer (TSD)
- See www.plaidvest.com
- v1.4
- Cross platform version
- GUI = Tk/Tcl
- Increase performance when adjusting contrast
- v1.3
- Separate PC and Mac versions
- PC version uses command line parameters (no file open/save dialog boxes)
- GUI = wxPython
Requirements:
- Python 3 (www.python.org)
- Pillow 5.2.0 (pip install Pillow)
Run from the terminal:
- cd /folder/to/trsimage
- ./trs_image.py
Run from the command prompt:
- cd c:\folder\to\trsimage
- python trs_image.py
Using the TRS Image BASIC output file(s):
- Copy BASIC program to a virtual .dsk image (I use TRS Tools)
-or- - Copy to actual diskette using your favorite method
- Boot TRS80 Model III with LDOS 5
- Switch to Misosys LBasic by typing BASIC
- Load sample program: LOAD "xxx.BAS"
- Run sample program: RUN
- (Optional) Re-run with RUN or save the smaller program back to disk SAVE "xxx.BAS"
- Return to LDOS with CMD"S"