home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib38b.dsk
/
FILL.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
40 lines
10 REM ***************************
20 REM * FILL.DEMO *
30 REM * BY BRENT IVERSON *
40 REM * COPYRIGHT(C) 1990 *
50 REM * MINDCRAFT PUBL. CORP. *
60 REM * CONCORD, MA. 01742 *
70 REM ***************************
80 PRINT CHR$(4)"BLOAD FILL.BIN"
90 REM ---SET UP FOR GRAPHICS
100 HGR : POKE -16302,0: HCOLOR= 3
110 REM ---DRAW "F"
120 HPLOT 30,30 TO 70,30 TO 70,50 TO 40,50 TO 40,90 TO 60,90 TO 60,110 TO 40,110 TO 40,150 TO 30,150 TO 30,30
130 REM ---DRAW "I"
140 HPLOT 80,30 TO 130,30 TO 130,50 TO 110,50 TO 110,130 TO 130,130 TO 130,150 TO 80,150 TO 80,130 TO 100,130 TO 100,50 TO 80,50 TO 80,30
150 REM ---DRAW "L"
160 HPLOT 150,30 TO 160,30 TO 160,130 TO 190,130 TO 190,150 TO 150,150 TO 150,30
170 REM ---DRAW "L"
180 HPLOT 210,30 TO 220,30 TO 220,130 TO 250,130 TO 250,150 TO 210,150 TO 210,30
190 REM ---MAKE BORDER LINES
200 FOR I = 0 TO 24 STEP 6: HPLOT I,I TO 279 -I,I TO 279 -I,191 -I TO I,191 -I TO I,I: NEXT
210 REM ---FILL IN AREAS
220 X = 2:Y = 2:C = 1: GOSUB 350
230 X = 8:Y = 8:C = 2: GOSUB 350
240 X = 14:Y = 14:C = 1: GOSUB 350
250 X = 20:Y = 20:C = 2: GOSUB 350
260 X = 26:Y = 25:C = 3: GOSUB 350
270 X = 35:Y = 35:C = 5: GOSUB 350
280 X = 85:Y = 35:C = 6: GOSUB 350
290 X = 155:Y = 35:C = 5: GOSUB 350
300 X = 215:Y = 35:C = 6: GOSUB 350
310 REM ---MAKE BUZZ AND END
320 FOR I = 1 TO 100:P = PEEK( -16336): NEXT
330 END
340 REM ---CALL FILL ROUTINE
350 POKE 6,X -(X >255) *256
360 POKE 7,X >255
370 POKE 8,Y
380 POKE 9,C
390 CALL 16384
400 RETURN