BASIC command extensions

From BeebWiki
Revision as of 17:44, 19 February 2024 by Jgharston (talk | contribs) (Initial page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
COLOUR n          Select text colour                     VDU 17,n
COLOUR l,p        Set colour mapping                     VDU 19,l,p,0,0,0
COLOUR r,g,b      Set text colour closest to (r,g,b)
COLOUR l,r,g,b    Set colour mapping                     VDU 19,l,16,r,g,b
COLOUR l,r,g,b,a  Set colour mapping with alpha channel
COLOUR ON ...     Set background text colour
COLOUR ... ON ... Set foreground and background text colour

GCOL n            Set graphics colour                    VDU 18,0,n
GCOL a,n          Set graphics colour                    VDU 18,a,n
GCOL r,g,b        Set graphics colour closest to (r,g,b)
GCOL a,r,g,b      Set graphics colour closest to (r,g,b)
GCOL ON ...       Set graphics background colour
GCOL ... ON ...   Set graphics foreground and background colour

PLOT x,y          Plot a point                           VDU 25,69,x;y;
PLOT k,x,y        Plot action                            VDU 25,k,x;y;

PROCname[(parameters)]
PROC(address)[(parameters)]

BPUT#<num>,<num>
BPUT#<num>,<str>
BPUT#<num>,<str>;

SOUND <num>,<num>,<num>,<num>                            OSWORD 7
SOUND OFF                                                OSBYTE 210,0
SOUND ON                                                 OSBYTE 210,255