--- title: "RLE Graphics (Part Two)" type: "article" slug: "rle-graphics-part-two" url: "http://localhost/article/rle-graphics-part-two/" markdown_url: "http://localhost/article/rle-graphics-part-two.md" published_at: "2026-11-03T17:29:58+00:00" modified_at: "2026-11-03T21:15:07+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "My how time flies when you're having fun!! I dug through the files and was amazed that almost a full year has passed since I submitted the original RLE article (Jan/Feb '87). In that article I explained the use of an RLE DECODER program, a short program that would take an RLE encoded picture, and…" post_tag: - name: "CompuServe" slug: "compuserve" taxonomy: "post_tag" url: "http://localhost/tag/compuserve/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "TIMACHINE" slug: "timachine" taxonomy: "post_tag" url: "http://localhost/tag/timachine/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Stan Lemke" slug: "stan-lemke" taxonomy: "indiv" url: "http://localhost/indiv/stan-lemke/" publication_r: id: 10277 title: "Time Designs Magazine" type: "periodical" url: "http://localhost/periodical/time-designs-magazine/" authors: "Stan Lemke" volume: "4" issue: "1" issues_articles: - id: 36805 title: "Time Designs Magazine v4 n1" type: "issue" url: "http://localhost/issue/time-designs-magazine-v4-n6-2/" pages: "unnumbered (PDF 25-26)" pubdate: "November/December 1987" archive_link: false --- # RLE Graphics (Part Two) My how time flies when you’re having fun!! I dug through the files and was amazed that almost a full year has passed since I submitted the original RLE article (Jan/Feb ’87). In that article I explained the use of an RLE DECODER program, a short program that would take an RLE encoded picture, and decode it into a form that our beloved TS2068 could display. Now I would like to explain the other half of the process…RLE ENCODING. As with the Decoder program, the original Encoder program was written by [John Ryan](http://localhost/indiv/john-ryan/) and distributed through CompuServe. I modified the program somewhat, and am presenting it here with John’s consent. The [RLE Encoder](http://localhost/computer_media/rle-encoder/) will convert a standard TS2068 screen (256 pixels wide by 176 pixels high) to the RLE format. This is compatible with most of the graphics programs written for the TS2068. The bottom 16 pixel rows are padded with “blanks” to fill out the standard RLE format. LISTING #1: This is a listing of the RLE ENCODER program entirely in BASIC. It is followed by the CKTYPE output (see May/June ’87 TDM). Although the program works, in this form it could well take in excess of an hour to completely encode a complex picture. (Note: The RLE format counts the number of paper dots and ink dots used to construct the picture.) Simply type in the program as listed. Save it to tape with the command RUN 9999 and ENTER. Load and run the CKTYPE program and compare this with the CKTYPE output listing. To RUN the RLE Encoder, type RUN 2020 and ENTER, or LOAD it from tape. You will be prompted to LOAD a SCREEN$ (picture). The encoding will begin immediately. When completed, you will be asked to NAME and SAVE the RLE Encoded bytes. LISTING #2: This is a listing of the [TIMACHINE](http://localhost/product/timachine/) COMPILER (by [Novelsoft](http://localhost/company/novelsoft/)) version of the RLE Encoder program. Type in this version if you have this compiler, save it to tape, and compile it. The TIMACHINE COMPILER “list” output is included after the program listing. If you get anything different, double-check your listing. Save the program/bytes as directed by TIMACHINE. The bottom section of Listing #2 has the BASIC LOAD/SAVE portion of the RLE Encoder program. (Reset your computer before going any further.) Type in this portion of the program, LOAD in the compiled bytes, and SAVE the program with the command RUN 9999 and ENTER. When you run this program by typing RUN and ENTER or LOADing the program, you will be asked to LOAD a SCREEN$ (or picture). Encoding will begin immediately and take 30 to 40 seconds…SAVE this to tape as directed. Now you are able to SEND some of those great TS2068 SCREEN$ to other computers through the common RLE format bridge! ### Listing #1: ``` 1 REM *********************** RLE ENCODER Original program by John Ryan Presented with author's consent modified by ... S D Lemke Lemke Software Development 2144 White Oak Wichita, Ks. 67207 ******************************** 10 LET X=0 20 LET Y=175 30 LET B=0 40 LET S=40002 50 LET W=0 60 LET Z=0 70 LET C=176 100 REM *********************** FIND PAPER (BLACK) FIRST ******************************** 110 LET A=POINT (X,Y) 120 IF A=0 THEN LET B=B+1 130 IF 0