Chapter 6
Simple graphics.


Hi ! Now , we will learn to make simple graphics.
There are a few commands for drawing, but you always start with
SCREEN x
x can (and should) be replaced with a number from 0 to 13.
For now, we will work in SCREEN 7.
In this corner, we have the PSET command.
In the other corner, we have the LINE command.
In the third corner, we have the CIRCLE command
The referee, PAINT command!
The PSET command works like this:
PSET (x, y), colour
(x is the x axis. y is the y axis. colour is the colour.)
It sets the pixel position colour.
The line command works like this:
LINE (X1, Y1)-(X2, Y2), colour,(BF or B)
It draws a line from x1,y1 to x2,y2.
BF makes a filled box and B makes a normal box.(can be omitted).
Now, we have a truly marvellous command. Referred to as the CIRCLE command,
it draws a circle!
Here it comes
CIRCLE (x, y), radius, colour
x,y is th circle's center, radius is it's radius and colour is it's colour.
Note : For more information on drawing ellipses, arc, etc. read the manual.You
can learn alot more, too.
;And here is the fight's survivor(the ref), the PAINT command!
PAINT (x, y), colour,  bordercolour
PAINT fills the place with colour, bordered by bordercolour.
Okay, now I can end this tutorial with a note .
Note : Always start with SCREEN x
before using these commands.

Now I will demonstrate all these commands in a simple program
Download eg.zip
Hosted by www.Geocities.ws

1