PLOT (PL.)
PLOT is a multi-purpose drawing statement. Three numbers follow the PLOT statement: the first specifies the type of point, line, or triangle to be drawn; the second and third give the X and Y coordinates to be used.
| n | action |
| -1 | Move the graphics origin to x,y. |
| 0 | Move the graphics cursor relative to the last point. |
| 1 | Draw a line, in ‘black’, relative to the last point. |
| 2 | Draw a line, in ‘inverse’, relative to the last point. |
| 3 | Draw a line, in ‘white’, relative to the last point. |
| 4 | Move the graphics cursor to the absolute position x,y. |
| 5 | Draw a line, in ‘black’, to the absolute position x,y. |
| 6 | Draw a line, in ‘inverse’, to the absolute position x,y. |
| 7 | Draw a line, in ‘white’, to the absolute position x,y. |
| 8-15 | As 0-7, but plot the last point on the line twice (i.e. in the ‘inverting’ modes omit the last point). |
| 16-31 | As 0-15, but draw the line dotted. |
| 32-63 | As 0-31, but plot the first point on the line twice (i.e. in the ‘inverting’ modes omit the first point). |
| 64-71 | As 0-7, but plot a single point at x,y. |
| 72-79 | Draw a horizontal line left and right from the point x,y until the first ‘lit’ pixel is encountered, or the edge of the window. This can be used to fill shapes. |
| 80-87 | Plot and fill a triangle defined by the two previously visited points and the point x,y. |
| 88-95 | Draw a horizontal line to the right of the point x,y until the first ‘unlit’ pixel is encountered, or the edge of the window. This can be used to ‘undraw’ things. |
| 96-103 | Plot and fill a rectangle whose opposite corners are defined by the last visited point and the point x,y. |
This statement is available when installed with Z88 Patch via CHAIN command. See “Installing Z88 Patch” section previously in this guide, on how to obtain the Z88 Patch.
Available by default when BBC BASIC(Z80) is used with Z88 ROM release V4.3 and later.
SyntaxPLOT <numeric>,<numeric>,<numeric>
Associated Keywords
MODE, CLG, MOVE, DRAW, POINT, VDU, GCOL
Last updated on