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

291 88- 95 As 0-7 but to draw a horizontal line to the right until reaching the current background colour. 96- 255 Reserved for future expansions. See chapter 34 on VDU drivers for an alternative interpretation of the numbers given above. Suppose that in the above example, PLOT K,X,Y , the value of X was 50 and the value of Y was 80 then ‘draw line relative’ would mean draw a line to the point on the screen 50 places to the right of the origin and 80 places up from the origin. ‘Logical inverse colour’ is explained next. In two colour MODE s the logical inverse colour of logical colour 0 is logical colour 1. In four colour MODE s the following apply:

Logical colour Inverse 0 3 1 2 2 1 3 0 In the 16 colour MODE logical colour 0 becomes 15, logical colour 1 becomes 14 and so on. When drawing lines the computer draws a line from the last point X,Y position given. Normally the origin is set at the bottom left of the screen, but its position may be moved to any point by using the VDU29 statement. See chapter 34 for more information. The graphics screen is 1280 points (0-1279) wide and 1024 (0-1023) points high. The most commonly used PLOT statements are PLOT 4 and PLOT 5 , so these two have been given duplicate keywords; MOVE and DRAW . To print a string at a specific place on the screen use the TAB(X,Y) statement.

As an alternative one can join the graphics and text cursor together with the statement VDU5 so that the computer prints text at the graphics cursor position. Once that has been done then the graphics cursor can be moved with MOVE , DRAW and PLOT statements.