Category : Science and Education
Archive   : CHAOS.ZIP
Filename : CHAOS3.BAS

 
Output of file : CHAOS3.BAS contained in archive : CHAOS.ZIP
1000 KEY OFF: SCREEN 9: CLS : PALETTE
1010 PALETTE 1, 10
1020 PALETTE 2, 18
1030 PALETTE 3, 23
1040 PALETTE 4, 63
1050 DEFINT A-X
1060 DIM VX(900), VY(900)
1070 '
1080 PRINT "Chaos III - R.C.Williford 2/89"
1090 PRINT "Program to demonstrate the behavior of chaotic"
1100 PRINT "relationships between multiple points on a CIRCULAR plane."
1110 PRINT " "
1120 INPUT "Enter the number of initial points (3 min.) "; P
1130 CLS
1140 '
1150 FOR Z = 1 TO 900: VX(Z) = 0: VY(Z) = 0: NEXT Z
1160 ZPI = 3.141593: I = 0
1170 FOR ZP1 = 0 TO ZPI * 2 STEP (ZPI * 2) / P
1180 I = I + 1
1190 VX(I) = 320 + (SIN(ZP1) * 240)
1200 VY(I) = 175 + (COS(ZP1) * 170)
1210 NEXT ZP1
1220 FOR I = 1 TO P
1230 IF VX(I) > 0 THEN PSET (VX(I), VY(I)), 15
1240 NEXT I
1250 '
1260 RVX1 = RND(4) * 640
1270 RVY1 = RND(8) * 350
1280 '
1290 FOR C = 1 TO 4
1300 FOR Z = 1 TO 10000
1310 I = 1 + (RND(4) * (P - 1))
1320 RVX = (RVX1 + VX(I)) / 2
1330 RVY = (RVY1 + VY(I)) / 2
1340 PSET (RVX, RVY), C
1350 RVX1 = RVX: RVY1 = RVY

1360 NEXT Z
1370 N$ = INKEY$: IF N$ = CHR$(27) THEN CLS : END
1380 IF N$ > "" THEN C = 4
1390 NEXT C
1400 GOTO 1120



  3 Responses to “Category : Science and Education
Archive   : CHAOS.ZIP
Filename : CHAOS3.BAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/