Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

290 PLOT Purpose PLOT is the multi-purpose point, line and triangle drawing statement in BASIC. The first number which follows the keyword PLOT tells the computer what kind of point, line or triangle it is going to draw. The two following numbers give the X and Y coordinates to be used in plotting the point or drawing the line or triangle. PLOT K,X,Y plots to the point at X,Y in a manner determined by the value of K. The effect of each value of K will be: 0 Move relative to last point. 1 Draw line relative in the current graphics foreground colour. 2 Draw line relative in the logical inverse colour. 3 Draw line relative in the current graphics background colour. 4 Move to absolute position.

5 Draw line absolute in the current graphics foreground colour. 7 Draw line absolute in the current graphics background colour. 6 Draw line absolute in the logical inverse colour. Higher values of K have other effects which are related to the effects given by the values 0 to 7. 8- 15 As 0-7 but with the last point in the line omitted. 16- 23 As 0-7 but with a dotted line. 24- 31 As 0-7 but with a dotted line and without the last point on the line. 32- 63 Reserved. 64- 71 As 0-7 but only a single point is plotted. 72- 79 As 0-7 but to draw a horizontal line to the left and right of the point until a colour other than the current background colour is reached.

80- 87 As 0-7 but plot and fill a triangle. When filling solid triangles with colour the computer fills the triangle between the coordinates given and the last two points visited.