home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 25 / bbd25.zip / AUTODRAW.TXT < prev    next >
Text File  |  1988-08-19  |  9KB  |  149 lines

  1. |A╔══════════════╗════════════════════════════════════════════════╔══════════════╗
  2. |A║ |2Happy Hacker |A║═══════════════════ ^1Auto Draw |A══════════════════║ |2Happy Hacker |A║
  3. |A╚══════════════╝════════════════════════════════════════════════╚══════════════╝
  4. ^Cby
  5. ^CDavid Leithauser
  6.  
  7.    Auto Draw is a graphics program that lets you draw pictures on your computer
  8. screen.  There are many such programs available, but Auto Draw has two important
  9. differences from these other programs.  First, Auto Draw lets you draw by
  10. inputting commands, such as "D20" to draw a line down 20 units, rather than draw
  11. by moving a cursor around the screen with the cursor keys.  This makes it useful
  12. for drawing precise figures in such applications as drafting, where you are
  13. drawing a diagram to specifications.  Second, when you have finished drawing the
  14. picture on the screen, Auto Draw will write a short BASIC program for you that
  15. draws this picture.  The BASIC program is completely independent of Auto Draw,
  16. and can be used as a stand alone program or a subroutine in a larger program
  17. like a graphic adventure game.  Therefore, you can use Auto Draw as a
  18. programming aid.
  19.  
  20. ^CUsing Auto Draw
  21.  
  22.    When you run Auto Draw, it will first display a color chart and ask you which
  23. color you want as the background color for your drawing.  Type the number of
  24. your selection (from 1 to 16) and press ENTER (or RETURN on some computers).
  25. Next the computer will ask which palette you want.  Press either 0 or 1.  You do
  26. not need to press ENTER.
  27.  
  28.    Auto Draw will then show you the three colors you will be using (not counting
  29. background) with a number above each color, and ask you which color to start
  30. with.  This is the color that Auto Draw will use when you first start drawing.
  31. You can change colors as you draw (more on this shortly), but for now just
  32. select the color you want your first line to be.  Remember the numbers above
  33. each of the colors, since you will be using these numbers to refer to the colors
  34. later.
  35.  
  36.    Once you select your starting color, the screen will clear except for a tiny
  37. flashing cursor in the center of the screen.  You are now ready to input your
  38. commands by typing them on the keyboard.  As you type the command it will appear
  39. in the upper left corner of the screen.  If you make a mistake, press the
  40. backspace key.  When you finish the command, press ENTER.
  41.  
  42.    Your primary commands are U for up, D for down, R for right, and L for left.
  43. Each of these should be followed by a number.  For example, you would type U10
  44. to draw a line up 10 units.  You can draw a line at any angle by combining these
  45. commands.  For example, R20D40 (or D40R20) causes Auto Draw to draw a diagonal
  46. line right 20 and down 40.  If you omit the first number it defaults to the
  47. second number.  For example, UR40 (or RU40) causes Auto Draw to draw a line that
  48. goes up 40 and to the right 40.  You must, however, provide at least one number.
  49.  
  50.    You can move the cursor without drawing a line by putting M before any of the
  51. above commands.  For example, MLU40 causes the cursor to move left and up 40,
  52. but not draw a line as it moves.  This allows you to draw several figures that
  53. are not connected.
  54.  
  55.    You can change drawing color by inputting C followed by a number from 0 to 3
  56. as a command.  For example, if you have been drawing with color 1 and you input
  57. the command C2, the commands that follow will draw with color 2, until you input
  58. another C command.  When you input a C command, you will not see any effect on
  59. the screen until you execute the next drawing command.
  60.  
  61.    You can fill in an area that is bordered by one color with the P command.  If
  62. the border is the same color as the color you are filling it with, the command
  63. is just Pn, where n is the number from 0 to 3 to fill with.  If the border is a
  64. different color than the fill color, the command is Pn,m (such as P2,3), where n
  65. is the fill color and m is the border color.  To use the P command, you must
  66. first move the cursor inside the area to be filled with an M (move without
  67. drawing) command, such as MUR5.  The P command changes the current color to
  68. color n.  That is, after a Pn or Pn,m command, the program will draw in color n
  69. until the next C command.
  70.  
  71.    The most complicated draw command is the CIRCLE command.  This command is in
  72. the form CIRCLE a,b,c,d, where a is the radius, b is the starting point, c is
  73. the end point, and d is the ratio of the height of the circle to the width.  The
  74. variables b and c are in degrees and vary from 0 to 360.  The right side of the
  75. circle is 0 degrees and the left side is 180 degrees.  For example, a circle
  76. that starts at 90 and ends at 270 would be the left side of a circle.
  77.  
  78.    Fortunately, all these values except the radius have default values.  You
  79. will normally just use the command in the form CIRCLE a.  For example, CIRCLE 40
  80. draws a circle of radius 40, centered at the current cursor position.  You can
  81. draw an ellipse by specifying just the radius and the Y/X ratio.  For example,
  82. CIRCLE 60,,,.2 and CIRCLE 60,,,5 draw ellipses.  The starting point defaults to
  83. 0 degrees and the ending point defaults to 360.  The Y/X ratio defaults to 1.
  84.  
  85.    Pressing the Esc key erases the last operation you performed.  If you draw a
  86. line (or perform some other operation) and you don't like it, just press the Esc
  87. key.  You can press the Esc key repeatedly to erase any number of previous
  88. operations, in the reverse order in which they were performed.  For example,
  89. pressing the Esc key five times erases the last five operations.
  90.  
  91.    If you are drawing very complicated pictures, you may notice that the
  92. computer seems to respond more and more slowly to your commands.  This is
  93. because Auto Draw draws the entire picture from the start each time you add or
  94. remove a line.  Please wait for the computer to add each new line before
  95. inputting a new command, to prevent the computer from becoming backlogged.
  96.  
  97.    You can move the picture around the screen with the cursor keys.  This allows
  98. you to reposition the picture if you find that you are running out of room at
  99. one side or the top or bottom.
  100.  
  101.    You can enlarge the picture on the screen by pressing the plus (+) key.  You
  102. can reduce it by pressing the minus (-) key.  The picture is fully reduced when
  103. the program starts, so pressing the - key will have no effect until you have
  104. pressed the + key at least once.
  105.  
  106.    Pressing S allows you to save the current drawing on disk.  Auto Draw will
  107. ask you to input a file name.  Input any name up to eight letters and press
  108. ENTER. Auto Draw will save the picture on disk with that file name.  This is not
  109. the stand-alone BASIC program I mentioned.  I will discuss that shortly.  This
  110. file is a data file that allows Auto Draw to recreate the picture.  You can
  111. recall the picture later by pressing G when the program is running and inputting
  112. the same file name when Auto Draw asks for a file name.
  113.  
  114.    Pressing E totally erases the current picture, giving you a blank slate.
  115. Pressing T terminates the program completely.  Auto Draw will give you a chance
  116. to save the picture before doing either of these, unless you have saved the
  117. picture since you last altered it.
  118.  
  119.    Pressing B causes Auto Draw to write a BASIC program which draws the picture
  120. currently on the screen.  When you press B, Auto Draw will ask whether you want
  121. the BASIC program output to the screen, printer (line printer # 1), or disk.  If
  122. you choose the screen or printer, Auto Draw outputs a listing of the program.
  123. If you choose disk, Auto Draw will ask you for a file name.  Input any name up
  124. to eight letters and press ENTER.  Auto Draw will then save the actual program
  125. on disk with that file name and the extension BAS.
  126.  
  127.    After Auto Draw has saved the program on disk, you can go to BASIC and load
  128. and run the program.  The first line of the program sets the screen to graphics
  129. mode.  The second line positions the picture on the screen the same way it was
  130. when Auto Draw created the program.  The rest of the lines draw the picture.
  131. After the program has drawn the picture, it returns to BASIC and displays the OK
  132. prompt.
  133.  
  134.    If all you want the program to do is draw the picture, you will probably want
  135. to add a line such as 60000 GOTO 60000 to cause the program to loop back until
  136. you press the Ctrl-BREAK key.  This prevents the screen from showing the OK
  137. prompt. You can also renumber the BASIC program lines that draw the picture and
  138. use them as a subroutine in a program, such as a graphics adventure game.
  139.  
  140.    While running Auto Draw, you can get a brief summary of all the commands by
  141. pressing either ? or H (for Help).
  142.  
  143.    To run this program outside the BIG BLUE DISK menu, type: ^1AUTODRAW^0.
  144.  
  145. DISK FILES THIS PROGRAM USES:
  146. ^FAUTODRAW.EXE
  147. ^FBRUN30.EXE
  148. ^FRETURN30.EXE
  149.