mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-19 20:16:24 +00:00
b586eafd3b
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
34 lines
No EOL
1,014 B
QBasic
34 lines
No EOL
1,014 B
QBasic
'MakeBig.bas:
|
|
'This program reads data statements and uses pset to draw the
|
|
'pixel color they represent.This is familiar to a few people
|
|
'but I altered it to make the image twice as large as it is normaly
|
|
CLS : SCREEN 12
|
|
DATA 00,00,00,14,14,14,14,00,00,00
|
|
DATA 00,14,14,14,14,14,14,14,14,00
|
|
DATA 00,14,00,00,14,14,00,00,14,00
|
|
DATA 14,14,00,00,14,14,00,00,14,14
|
|
DATA 14,14,00,00,14,14,00,00,14,14
|
|
DATA 14,00,14,14,14,14,14,14,00,14
|
|
DATA 14,00,00,14,14,14,14,00,00,14
|
|
DATA 00,14,00,00,00,00,00,00,14,00
|
|
DATA 00,14,14,00,00,00,00,14,14,00
|
|
DATA 00,00,00,14,14,14,14,00,00,00
|
|
FOR y = 1 TO 20 STEP 2
|
|
FOR x = 1 TO 20 STEP 2
|
|
READ z
|
|
PSET (x, y), z
|
|
PSET (x + 1, y), z
|
|
PSET (x, y + 1), z
|
|
PSET (x + 1, y + 1), z
|
|
NEXT
|
|
NEXT
|
|
DIM g%(200)
|
|
GET (0, 0)-(20, 20), g%
|
|
LOCATE 1, 5
|
|
INPUT "File: "; file$
|
|
IF file$ = "" THEN END
|
|
OPEN file$ FOR BINARY AS #1
|
|
FOR I = 0 TO 200
|
|
PUT #1, , g%(I)
|
|
NEXT
|
|
CLOSE #1 |