1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-09-04 11:10:15 +00:00
qb64/programs/samples/pete/makebig.bas
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

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