80-Bus News |
March–April 1983 · Volume 2 · Issue 2 |
Page 29 of 55 |
---|
Graphpac Command Manual | Page 1 |
---|
The documentation for Graphpac is in two parts.
This gives the general description of the commands and features provided by all current versions of Graphpac.
This gives specific details for implementing Graphpac on your computer and a summary of relevant commands.
On receipt of this computer program and associated documentation, you are granted a non-exclusive license to execute the enclosed software and to make backup copies of the computer program for single user use only. Mbaslink and Graphpac are subject to copyright and all rights are reserved.
No representations or warranties with respect to the contents hereof are made and any implied warranties of merchantability or fitness for any particular purpose are specifically disclaimed.
1 | Manual Description And Copyright Notice |
2 | Introduction To Graphpac |
2 | Graphpac Commands |
2 | PSET |
3 | PRESET and PTEST |
4 | Pen Commands |
5 | Line Drawing Commands |
7 | Cap Command |
8 | Screen Management Commands |
9 | Bar Graph Commands |
10 | Disk Handling Commands |
10 | Graphic Option Commands |
12 | SPOKE |
Graphpac Command Manual | (c) 1983 Gemini Microcomputers Ltd. |
Graphpac Command Manual | Page 2 |
---|
Graphpac allows the user to SET, RESET, INVERT or TEST any pixel on the screen. Routines are also supplied to draw lines using rectangular (based on X,Y values) or polar co-ordinates (described by an angle and distance). This manual gives a general description of Graphpac features and commands in a similar format and notation to Microsoft Mbasic documentation. An entry is given for each command showing the syntax used.
The resolution of the graphics is determined by the hardware used and can range from 96 pixels across the screen by 46 pixels down, to 512 X 256 or more.
Graphpac commands control an invisible graphics cursor, the position of this cursor is described by X,Y co-ordinates. Values supplied to Graphpac are treated as signed 16-bit values between −32768 and +32767. A screen X coordinate value of +32767 is the maximum distance to the right of the screen that the graphics cursor may be placed. Negative values are to the left of the screen, −32768 being the maximum. It is not necessary to use the INT function before passing a value to Graphpac.
Note that if Graphpac is used with Microsoft Mbasic or BASIC-80, numbers between +32768 and +65535 will be accepted. Graphpac will interpret these values and all values in between as negative numbers between −32768 and −1.
As a general rule numbers greater then 32767 should not be passed to Graphpac.
Not all the commands described in this document will be available in the software supplied. Some would be unsuitable or impractical on your particular hardware, in other cases they may just be unnecessary. The documentation specific to your hardware (Graphpac System Manual) will inform you which commands are available.
Graphpac commands are stored in memory usually as normal ASCII characters and not as one byte tokens which represent normal BASIC reserved words.
The PLOT DRAW and DRAWTO commands may have more than one set of values passed at a time by separating each set with a semi colon.
i.e. 10 DRAWTO 0,0 ; 20,0 ; 20,20 ; 0,20
PSET X,Y
To SET a pixel.
X and Y are graphic co-ordinates. If a pixel is already bright there will be no change.
Page 29 of 55 |
---|