home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / graphics / textdraw / !TextDraw / !Help next >
Encoding:
Text File  |  1992-04-11  |  3.8 KB  |  85 lines

  1.  
  2.                                    !TextDraw
  3.                             =====================
  4.                              1.06  11-April-1992
  5.  
  6.                        by  Henrik Bjerregaard Pedersen
  7.  
  8.     This program is Public Domain, so do with it whatever you want, just
  9.  don`t blame me if anything goes wrong.
  10.  
  11.     !TextDraw converts graphics in the form of TEXT-files, containing
  12.  commands like DRAW, MOVE, CIRCLE etc., to Draw-files. For futher
  13.  explanation of commands like ARC, SEGMENT and SECTOR, see your BASIC V
  14.  manuals. Valid commands in this version are :
  15.  
  16.        MOVE <x>,<y>                   Move cursor
  17.        DRAW <x>,<y>                   Draw line
  18.        CIRCLE <x>,<y>                 Draw circle
  19.        CIRCLEFILL <x>,<y>             Draw filled circle
  20.        RECTANGLEFILL <x>,<y>          Draw filled rectangle
  21.        TRIANGLEFILL <x>,<y>           Draw filled triangle
  22.        ARC <x>,<y>                    Draw arc
  23.        SEGMENT <x>,<y>                Draw filled segment
  24.        SECTOR <x>,<y>                 Draw filled sector
  25.        ARROW <x>,<y>,<width>          Draw arrow
  26.        BEZIER <x>,<y>                 Draw Bezier-curve
  27.  
  28.        PATHSTART                      Inform !TextDraw that a path (only
  29.                                     move and draw) follows
  30.        PMOVE <x>,<y>                  Move within path
  31.        PDRAW <x>,<y>                  Draw within path
  32.        PATHEND                        End path
  33.  
  34.        GCOL <col>                     Set fillcolour and outline colour
  35.                                     to colour <col> from the Wimp-palette
  36.                                       GCOL -1 sets fillcolour and outline-
  37.                                     colour to `transparent`
  38.        COLOUR <r>,<g>,<b>             Set outline colour
  39.                                       COLOUR -1 means `transparent`
  40.        FILLCOL <r>,<g>,<b>            Set fillcolour
  41.                                       FILLCOL -1 means `transparent`
  42.        LINEWIDTH <pts>                Set linewidth. LINEWIDTH 0 means thin.
  43.  
  44.        ADDFONT <n>,<name>             Add a font to file
  45.        FONT <n>                       Select a font for textplotting
  46.        FONTSIZE <width>,<height>      Set fontsize in pts
  47.        TEXT <string>                  Plot text, max 11 characters
  48.                                       To use anti-aliasing on a white back-
  49.                                     ground, set FILLCOL to 255,255,255
  50.  
  51.     Be sure to include the single space between the command and the
  52.  parameters, otherwise the parser will fail.
  53.  
  54.     Start !TextDraw the usual way, by doubleclicking on its icon in a
  55.  directoryviewer. The program then installs itself on the iconbar.
  56.     Clicking MENU on the iconbar-icon will reveal a menu with four items.
  57.  The meaning of these should be fairly obvious.
  58.  
  59.     Preview only shows that part of the drawing that lies within the usual
  60.  screen, that is; 0<=x<=1279 and 0<=y<=1023, and doesn`t plot text in outline
  61.  fonts, but uses the monospaced system font.
  62.  
  63.     Personally, I use this program alot for creating Draw-files of data from
  64.  other programs. Often the desired result is a path consisting of a MOVE in
  65.  the beginning, followed by several (hundreds) DRAWs. This will usually
  66.  result in a very large Drawfile, each of the hundreds of DRAWs being an
  67.  object. By using PMOVE and PDRAW, encapsulated in PATHSTART and PATHEND,
  68.  the size of the file is reduced to typically one fifth, and futhermore, the
  69.  rendering of the file is a bit faster, as all the DRAWs are gathered in one
  70.  object as a path.
  71.     Notice however, no other commands than PMOVE and PDRAW are allowed
  72.  between PATHSTART and PATHEND, nor may PDRAW and PMOVE appear outside
  73.  PATHSTART-PATHEND.
  74.  
  75.             --------------------------------------------
  76.  
  77.      My address is:
  78.  
  79.     Henrik Bjerregaard Pedersen
  80.     Stengaards Alle 13 B
  81.     DK-2800 Lyngby
  82.     Denmark
  83.  
  84.     Phone (+45) 42 88 37 56
  85.