AT&T 6300 Programmer's Manual page 495

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Example 1
VIEW
Statement
This example opens three viewports, each
smaller than the previous one. In each case, a
line that is defined to go beyond the borders is
programmed, but appears only within the
viewport border.
260
CLS
280
VIEW: REM
* *
Make the viewport the entire
screen.
320
VIEW (10,10] - (300,180],,1
330
LINE (0,0] - (310,190],1
360
LOCATE 1,11: PRINT uA big viewport"
380
VIEW SCREEN
(50,50]-(250,150],,1
400
CLS:REM
* *
Note, CLS clears only viewport
420
LINE (300,0]-(0,199],1
440
LOCATE 9,9: PRINT UA medium viewport"
460
VIEW SCREEN
(80,80]-(200,125]"1
480
CLS
500
CIRCLE (150,100],20,1
520
LOCATE 11,9: PRINT uA small viewport"
This example demonstrates scaling with
VIEW and WINDOW.
7-339

Advertisement

Table of Contents
loading

Table of Contents