Category : Modula II Source Code
Archive   : LINEDRAW.ZIP
Filename : SPIRAL.MOD

 
Output of file : SPIRAL.MOD contained in archive : LINEDRAW.ZIP
MODULE SPIRAL;

(* Adapted from the code listings in the April 1988 issue of Dr. Dobbs
Journal of Software Tools. The article was the Structed Programming
Column by Kent Porter in which he developed an implementation of Dr.
Writh's line drawing module. This FST adaptation of the module by
Larry Maturo, 12209 Arrowwood Drive, Austin, Texas 78727. *)


FROM InOut IMPORT Read;
FROM LineDraw IMPORT width, height, Px, Py, clear, line, copyArea,
WriteString, text;
CONST SquareSize = 512;

VAR n, d : CARDINAL;
ch : CHAR;


BEGIN
clear;
Px := 250;
FOR n := 0 TO 24 DO
d := n MOD 8;
line(d,n*5);
END;
Px := 548; Py := 198;
line(0,204);
line(2,204);
line(4,204);
line(6,204);
Px := 630; Py := 440;
WriteString("Copy ");
copyArea(200,200,550,200,200,200);
Read(ch);
text;
END SPIRAL.


  3 Responses to “Category : Modula II Source Code
Archive   : LINEDRAW.ZIP
Filename : SPIRAL.MOD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/