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

293 POINT Purpose To find out the colour of a certain position on the screen. Suppose that you are playing a game involving moving a car around a race track. On the race track are pools of green oil. To find out if the place where your car is about to move to has oil on it (so that the car will skid) you need to be able to find out if the screen is coloured green at that point. The number returned is the logical colour of the screen at the graphics point specified. If the selected point is off the screen then the number returned will be -1. There must not be a space between the word POINT and the opening parenthesis.

Examples 1340 colour=POINT(X,Y) 100 IF POINT (X,Y)=2 THEN PRINT "SKID!!" Description A function returning a number representing the colour on the screen at the specified coordinates. If the point is off the screen then the function returns -1. Syntax = POINT ( , ) PLOT , DRAW , MOVE , GCOL Associated keywords