home *** CD-ROM | disk | FTP | other *** search
AmigaBASIC Source Code | 1986-11-20 | 2.0 KB | 62 lines |
- ' *******************************
- ' * CRISSCROSS *
- ' * *
- ' * Ted L. Lashley - APL706 *
- ' * 6401 Main Street #4 *
- ' * Zachary, LA 70791 *
- ' *******************************
- SCREEN 2,640,200,3,2
- WINDOW 2,,(0,0)-(631,186),2,2
- GOSUB getpalettes
- RANDOMIZE TIMER
- GOSUB intro
- start:
- x=(RND*240)
- c=0
- FOR a=1 TO ((308-x)*x) STEP x
- b=INT(93*(COS(a)))+93
- d=INT(93*(COS(a+1)))+93
- c=c+1
- kolor=(INT(2*(c+x)) MOD 7)+1
- LINE (2*c,b)-(2*(c+x),d),kolor
- q$=INKEY$:IF q$=CHR$(27) THEN CLS:SYSTEM:END::ELSE IF q$<>"" THEN CLS: GOTO start
- NEXT a
- FOR q=1 TO 3000: NEXT
- a$=INKEY$:IF a$<>"" THEN loop :ELSE CLS: GOTO start
- loop:
- a$=INKEY$:IF a$="" THEN loop :ELSE CLS: GOTO start
- intro:
- LOCATE 2,29:COLOR 2,0:PRINT "C R I S S C R O S S"
- LOCATE 3,29:COLOR 3,0:PRINT "==================="
- LOCATE 7,1:COLOR 1,0
- PRINT " This colorful graphics program is self-running. After each"
- PRINT " screen is completed, the program will pause for a few seconds,"
- PRINT " the screen will clear, and the next screen will be drawn."
- PRINT:PRINT
- COLOR 4,0
- PRINT " During the pause between screens, hitting any key will stop"
- PRINT " the program; hitting any key will then let the program resume."
- PRINT:PRINT
- COLOR 7,0
- PRINT " You may clear the screen while the graphics are being drawn"
- PRINT " by hitting any key. Press <ESC> to end the program."
- PRINT:PRINT
- COLOR 6,0
- PRINT " Watch it awhile - some of the designs are surprising!"
- PRINT
- COLOR 5,0
- PRINT " Press <RETURN> to begin."
- loop2:
- w$=INKEY$:IF w$="" THEN loop2 :ELSE CLS:RETURN
- getpalettes:
- PALETTE 0,0,0,0 ' black
- PALETTE 1,0.9,0.9,0.9 ' white
- PALETTE 2,0.94,0.03,0.6 ' pink
- PALETTE 3,0.91,0.3,0.15 ' orange
- PALETTE 4,0.8,0.8,0 ' yellow
- PALETTE 5,0.09,0.6,0.06 ' green
- PALETTE 6,0.1,0.2,0.8 ' blue
- PALETTE 7,0.74,0.29,0.89 ' violet
- RETURN
-
-