home *** CD-ROM | disk | FTP | other *** search
- Scripit Graphics Commands
- =========================
-
-
- The following commands draw directly into a window (i.e. into its RastPort.)
- To use those, just SELECT the window you want, and start drawing!
-
- (Note: To select DPaint's window, use SELECT MENU PICTURE)
-
-
- GFX PEN front_pen,back_pen,drawmode
-
- Sets the front and back pen of the current window as well as
- its draw mode.
- Draw mode is of the following: JAM1, JAM2, COMP, INVR.
-
- GFX MOVE x,y
-
- Moves the windows 'cursor' to the specified x,y coords. This
- affects where drawing will start.
-
- GFX TEXT "string"
-
- Prints the specified string in the current font to the position
- selected by MOVE.
-
- GFX LINE x1,y1 x2,y2 .... xn,yn
-
- Draws connected straight lines.
-
- GFX CIRCLE x,y,radius
-
- Draws a circle at x,y using the specified radius
-
- GFX ELLIPSE x,y,x_radius,y_radius
-
- Draws an ellipse at x,y using the specified x_radius and
- y_radius.
-
- GFX BOX x,y,x2,y2
-
- Draws a rectangular. x,y and x2,y2 are any two opposite corners.
-
- GFX RECT x,y,x2,y2
-
- Draws a filled-in rectangular. x,y and x2,y2 are any two
- opposite corners.
-
- GFX SETFONT fontname,fontsize
-
- Sets the current font to "fontname.font" of the specified font
- size.
- (Not implemented yet.)
-
- GFX CLEAR x,y
-
- Clears the current window. The x,y are optional and select
- the start position for clearing.
-
- GFX CLEARLINE x,y
-
- Clear to the end of the current line starting at x,y.
-
- GFX FILL x,y,fillmode
-
- Does a flood-fill at the selected x,y using the current front
- pen. Fillmode can be either 0 or 1. (...details needed...)
-
- GFX PIXEL x,y
-
- Draws a single pixel at x,y using the current frontpen and
- drawmode.
-
- GFX SAVERECT x,y,x1,y1
-
- Clips a rectangular area from the window and saves it.
- (Not implemented yet.)
-
- GFX PUTRECT x,y
-
- Restores the clipped area.
- (Not implemented yet.)
-
- GFX SAVEMODE modenumber
-
- This saves the current settings (front pen, backpen, draw
- mode, and current x,y) to a temporary location. The
- modenumber selects which location to store in. Locations
- 0 to 3 are available.
-
- GFX RESTOREMODE modenumber
-
- Restores the current settings to those stored in the
- selected location. (0 to 3)
-