17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PLOT<br />

Unlike the L 0 CAT E command, PLO T may be used to determine the position of the<br />

graphics cursor, using pixel co-ordinates. (A pixel is the smallest possible segm<strong>en</strong>t of<br />

the scre<strong>en</strong>).<br />

Note that the graphics cursor is not visible and is differ<strong>en</strong>t from the character cursor.<br />

There are 640 horizontal pixels by 400 vertical pixels. The x,y co-ordinates are<br />

positioned with respect to the bottom left corner of the scre<strong>en</strong>, which has x,y<br />

co-ordinates of 0,0. Unlike the LO CAT E command used for characters, the<br />

co-ordinates do not differ betwe<strong>en</strong> modes 0,1, or 2.<br />

To see this, first reset the computer using [CONTROL] [SHIFn [ESC], th<strong>en</strong> type in:<br />

pLot 320,200<br />

A small dot will appear in the c<strong>en</strong>tre of the scre<strong>en</strong>.<br />

Now change the mode by typing in:<br />

mode 0<br />

pLot 320,200<br />

You will see the dot is still in the c<strong>en</strong>tre but is now larger. Change the mode again and<br />

type in the same command to see the effect in mode 2:<br />

mode 2<br />

pLot 320,200<br />

The dobs still in the c<strong>en</strong>tre, but is now much smaller.<br />

Plot several dots over the scre<strong>en</strong> in various modes, in order to accustom yourself with<br />

this command. Wh<strong>en</strong> you have finished, return to mode 1 and clear the scre<strong>en</strong> by<br />

typing in:<br />

mode<br />

DRAW<br />

First reset the computer using [CONTROL] [SHIFn [ESC]. The D RAW command<br />

draws a line from the curr<strong>en</strong>t graphics cursor position. To see this in more detail,<br />

draw a rectangle on the scre<strong>en</strong> by using the following program.<br />

We start by repositioning the graphics cursor with a PLO T command, th<strong>en</strong> DRAWing<br />

a line from the graphics cursor position, up towards the top left corner, th<strong>en</strong> from<br />

there to the right corner etc, etc. Type in:<br />

Chapter 1 Page 58 Foundation Course<br />

I

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!