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/pall2.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

100 lines
1.3 KiB
QBasic

DIM points(5)
FromWhere = 63
SCREEN 13
green = 0
blue = 0
red = 0
FOR a = 1 TO 63 * 2
IF red < 63 THEN
IF blue <> 1 THEN
red = red + 1
green = green + 1
ELSE
red = red - 1
green = green - 1
END IF
ELSE
blue = 1
red = red - 1
END IF
PALETTE a, red + green * 256 + blue * 65536
NEXT
FOR a = 63 * 2 TO 254
PALETTE a, 0 + 0 * 256 + 0 * 65536
NEXT
colors = 60
FOR a = 1 TO 50
colors = colors + 1
CIRCLE (38, 40), (a), colors
NEXT
colors = 60
FOR a = 1 TO 50
colors = colors + 1
CIRCLE (39, 40), (a), colors
NEXT
colors = 63
FOR a = 1 TO 15
colors = colors + 1
CIRCLE (39, 40), (a), colors
NEXT
PALETTE 255, 63 + 63 * 256 + 63 * 65536
PALETTE 254, 0 + 0 * 256 + 63 * 65536
sen = 255
DO
PSET (100, 105), sen
PSET (200, 150), sen
GOSUB colors
PSET (120, 45), sen
PSET (280, 20), sen
GOSUB colors
PSET (10, 170), sen
GOSUB colors
PSET (245, 100), sen
GOSUB colors
PSET (290, 150), sen
GOSUB colors
PSET (130, 160), sen
GOSUB colors
PSET (15, 90), sen
PSET (233, 50), sen
GOSUB colors
LOOP UNTIL INKEY$ <> ""
GOSUB BigEnding
END
colors:
SELECT CASE sen
CASE 255
sen = 63
CASE 63
sen = 254
CASE 254
sen = 255
END SELECT
RETURN
END
BigEnding:
FOR a = 256 TO 0 STEP -1
PALETTE a, 0 + 0 * 256 + 0 * 65536
NEXT
END