Graphics statements

BOX(X1,Y1)-(X2,Y2),C

Draws a box with corners at (X1,Y1) to (X2,Y2) in colour C.

BOXF(X1,Y1)-(X2,Y2),C

Draws a filled box with corners at (X1,Y1) to (X2,Y2) in colour C.

COLOR foreground,background,invert

Sets foreground and background colours. If invert is given then foreground and background are swapped.

DEFGR$(N)

Define a graphics character. N must be from 0 to 127.

DEFGR$(0) = 24,24,255,24,60,36,36,36

LINE(X1,Y1)-(X2,Y2),C

Draws a line from (X1,Y1) to (X2,Y2) in colour C.

LINE (100,100)-(300,150),2
LINE -(0,150),2
LINE (0,10)-(30,10) "+",3,0

POINT(X,Y)

Returns the color of the foreground if the pixel is set, otherwise the background.

PSET(x,y),C

Sets point x,y to colour c. If c is positive, the pixel colour is set, otherwise the background colour.

SCREEN foreground,background,border

Sets the colour scheme for the whole screen.

SCREENPRINT

Prints the content of the screen.