17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GW-BASIC <strong>User's</strong> Guide<br />

Example 1:<br />

If you type:<br />

NEW: SCREEN 2<br />

the screen uses the standard coordinate attributes:<br />

(0, 0) (320, 0) (639, 0)<br />

↓ y increases<br />

(320, 100)<br />

(0, 199) (320, 199) (639, 199)<br />

Example 2:<br />

If you type:<br />

WINDOW (-1, -1)-(1, 1)<br />

the screen uses the Cartesian coordinates:<br />

(-1, 1) (0, 1) (1, 1)<br />

↑ y increases<br />

(0, 0)<br />

↓ y decreases<br />

(-1, -1) (0, -1) (1, -1)<br />

Example 3:<br />

If you type:<br />

WINDOW SCREEN (-1, -1)-(1, 1)<br />

the screen uses the non-inverted coordinate:<br />

(-1, -1) (0, -1) (1, -1)<br />

↑ y decreases<br />

(0, 0)<br />

↓ y increases<br />

(-1, 1) (0, 1) (1, 1)<br />

RUN, SCREEN, and WINDOW with no attributes disable any WINDOW definitions and return the<br />

screen to its normal physical coordinates.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/WINDOW.html (2 of 2)28/03/2004 21.29.53

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

Saved successfully!

Ooh no, something went wrong!