home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / Scripit_v1.0 / Docs / Gfx.DOC < prev    next >
Text File  |  1989-08-06  |  3KB  |  95 lines

  1.                         Scripit Graphics Commands
  2.                         =========================
  3.  
  4.  
  5. The following commands draw directly into a window (i.e. into its RastPort.)
  6. To use those, just SELECT the window you want, and start drawing!
  7.  
  8.     (Note:  To select DPaint's window, use SELECT MENU PICTURE)
  9.  
  10.  
  11. GFX PEN         front_pen,back_pen,drawmode
  12.  
  13.                 Sets the front and back pen of the current window as well as
  14.                 its draw mode.
  15.                 Draw mode is of the following: JAM1, JAM2, COMP, INVR.
  16.  
  17. GFX MOVE        x,y
  18.  
  19.                 Moves the windows 'cursor' to the specified x,y coords.  This
  20.                 affects where drawing will start.
  21.                 
  22. GFX TEXT        "string"
  23.  
  24.                 Prints the specified string in the current font to the position
  25.                 selected by MOVE.
  26.  
  27. GFX LINE        x1,y1 x2,y2 .... xn,yn
  28.  
  29.                 Draws connected straight lines.
  30.  
  31. GFX CIRCLE      x,y,radius
  32.  
  33.                 Draws a circle at x,y using the specified radius
  34.  
  35. GFX ELLIPSE     x,y,x_radius,y_radius
  36.  
  37.                 Draws an ellipse at x,y using the specified x_radius and
  38.                 y_radius.
  39.  
  40. GFX BOX         x,y,x2,y2
  41.  
  42.                 Draws a rectangular.  x,y and x2,y2 are any two opposite corners.
  43.  
  44. GFX RECT        x,y,x2,y2
  45.  
  46.                 Draws a filled-in rectangular.  x,y and x2,y2 are any two
  47.                 opposite corners.
  48.  
  49. GFX SETFONT     fontname,fontsize
  50.  
  51.                 Sets the current font to "fontname.font" of the specified font
  52.                 size.
  53.                 (Not implemented yet.)
  54.  
  55. GFX CLEAR       x,y
  56.  
  57.                 Clears the current window.  The x,y are optional and select
  58.                 the start position for clearing.
  59.  
  60. GFX CLEARLINE   x,y
  61.  
  62.                 Clear to the end of the current line starting at x,y.
  63.  
  64. GFX FILL        x,y,fillmode
  65.  
  66.                 Does a flood-fill at the selected x,y using the current front
  67.                 pen.  Fillmode can be either 0 or 1.  (...details needed...)
  68.  
  69. GFX PIXEL       x,y
  70.  
  71.                 Draws a single pixel at x,y using the current frontpen and
  72.                 drawmode.
  73.  
  74. GFX SAVERECT    x,y,x1,y1
  75.  
  76.                 Clips a rectangular area from the window and saves it.
  77.                 (Not implemented yet.)
  78.  
  79. GFX PUTRECT     x,y
  80.  
  81.                 Restores the clipped area.
  82.                 (Not implemented yet.)
  83.  
  84. GFX SAVEMODE    modenumber
  85.  
  86.                 This saves the current settings (front pen, backpen, draw
  87.                 mode, and current x,y) to a temporary location.  The
  88.                 modenumber selects which location to store in.  Locations
  89.                 0 to 3 are available.
  90.  
  91. GFX RESTOREMODE modenumber
  92.  
  93.                 Restores the current settings to those stored in the
  94.                 selected location.  (0 to 3)
  95.