Home » Archimedes archive » Acorn User » AU 1996-02.adf » Regulars » StarInfo/Mossop/Cataract

StarInfo/Mossop/Cataract

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-02.adf » Regulars
Filename: StarInfo/Mossop/Cataract
Read OK:
File size: 02B1 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM                              ** Cataract **
   20REM                         ** By Daniel Mossop **
   30
   40ON ERROR PRINT REPORT$;" at line ";ERL:END
   50
   60s=RND(TIME)
   70time=TIME
   80blues=0
   90wait=0
  100MODE12:OFF
  110PROCsplash
  120colourstart=blues
  130FOR x=1TO1279STEP2
  140s=RND(3)-2
  150colourstart+=s
  160IFcolourstart=0THENcolourstart=15
  170IFcolourstart=16THENcolourstart=1
  180colour=colourstart
  190FORy=1 TO 1023 STEP 4
  200GCOL colour
  210POINT x,y
  220ds=RND(1)
  230IFds<0.6THENwait+=1
  240IFwait=3THENwait=0:colour-=1
  250IFcolour=0THENcolour=15
  260PROCsplash
  270NEXT
  280NEXT
  290REPEAT
  300PROCsplash
  310UNTIL FALSE
  320END
  330
  340DEF PROCsplash
  350IFTIME>time THEN
  360blues=blues MOD15 +1
  370FORloop%=1TO15
  380colname%=(blues+loop%) MOD15 +1
  390COLOUR colname%,16*loop%,16*loop%,255
  400NEXT
  410time=TIME+3
  420ENDIF
  430ENDPROC

1�                              ** Cataract **
4�                         ** By Daniel Mossop **

(� � � �$;" at line ";�:�
2
<
s=�(�)
F
time=�
Pblues=0
Z
wait=0
d	�12:�
n�splash
xcolourstart=blues
�� x=1�1279�2
�s=�(3)-2
�colourstart+=s
�!�colourstart=0�colourstart=15
�!�colourstart=16�colourstart=1
�colour=colourstart
��y=1 � 1023 � 4
�� colour
�
Ȓ x,y
�ds=�(1)
��ds<0.6�wait+=1
��wait=3�wait=0:colour-=1
��colour=0�colour=15
�splash
�
�
"�
,�splash
6� �
@�
J
T
� �splash
^
�>time �
hblues=blues �15 +1
r�loop%=1�15
|!colname%=(blues+loop%) �15 +1
�$� colname%,16*loop%,16*loop%,255
��
�time=�+3
��
��
�
00000000  0d 00 0a 31 f4 20 20 20  20 20 20 20 20 20 20 20  |...1.           |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020  20 20 20 2a 2a 20 43 61  74 61 72 61 63 74 20 2a  |   ** Cataract *|
00000030  2a 0d 00 14 34 f4 20 20  20 20 20 20 20 20 20 20  |*...4.          |
00000040  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 2a  |               *|
00000050  2a 20 42 79 20 44 61 6e  69 65 6c 20 4d 6f 73 73  |* By Daniel Moss|
00000060  6f 70 20 2a 2a 0d 00 1e  04 0d 00 28 1c ee 20 85  |op **......(.. .|
00000070  20 f1 20 f6 24 3b 22 20  61 74 20 6c 69 6e 65 20  | . .$;" at line |
00000080  22 3b 9e 3a e0 0d 00 32  04 0d 00 3c 0a 73 3d b3  |";.:...2...<.s=.|
00000090  28 91 29 0d 00 46 0a 74  69 6d 65 3d 91 0d 00 50  |(.)..F.time=...P|
000000a0  0b 62 6c 75 65 73 3d 30  0d 00 5a 0a 77 61 69 74  |.blues=0..Z.wait|
000000b0  3d 30 0d 00 64 09 eb 31  32 3a 87 0d 00 6e 0b f2  |=0..d..12:...n..|
000000c0  73 70 6c 61 73 68 0d 00  78 15 63 6f 6c 6f 75 72  |splash..x.colour|
000000d0  73 74 61 72 74 3d 62 6c  75 65 73 0d 00 82 10 e3  |start=blues.....|
000000e0  20 78 3d 31 b8 31 32 37  39 88 32 0d 00 8c 0c 73  | x=1.1279.2....s|
000000f0  3d b3 28 33 29 2d 32 0d  00 96 12 63 6f 6c 6f 75  |=.(3)-2....colou|
00000100  72 73 74 61 72 74 2b 3d  73 0d 00 a0 21 e7 63 6f  |rstart+=s...!.co|
00000110  6c 6f 75 72 73 74 61 72  74 3d 30 8c 63 6f 6c 6f  |lourstart=0.colo|
00000120  75 72 73 74 61 72 74 3d  31 35 0d 00 aa 21 e7 63  |urstart=15...!.c|
00000130  6f 6c 6f 75 72 73 74 61  72 74 3d 31 36 8c 63 6f  |olourstart=16.co|
00000140  6c 6f 75 72 73 74 61 72  74 3d 31 0d 00 b4 16 63  |lourstart=1....c|
00000150  6f 6c 6f 75 72 3d 63 6f  6c 6f 75 72 73 74 61 72  |olour=colourstar|
00000160  74 0d 00 be 13 e3 79 3d  31 20 b8 20 31 30 32 33  |t.....y=1 . 1023|
00000170  20 88 20 34 0d 00 c8 0c  e6 20 63 6f 6c 6f 75 72  | . 4..... colour|
00000180  0d 00 d2 0a c8 92 20 78  2c 79 0d 00 dc 0b 64 73  |...... x,y....ds|
00000190  3d b3 28 31 29 0d 00 e6  13 e7 64 73 3c 30 2e 36  |=.(1).....ds<0.6|
000001a0  8c 77 61 69 74 2b 3d 31  0d 00 f0 1c e7 77 61 69  |.wait+=1.....wai|
000001b0  74 3d 33 8c 77 61 69 74  3d 30 3a 63 6f 6c 6f 75  |t=3.wait=0:colou|
000001c0  72 2d 3d 31 0d 00 fa 17  e7 63 6f 6c 6f 75 72 3d  |r-=1.....colour=|
000001d0  30 8c 63 6f 6c 6f 75 72  3d 31 35 0d 01 04 0b f2  |0.colour=15.....|
000001e0  73 70 6c 61 73 68 0d 01  0e 05 ed 0d 01 18 05 ed  |splash..........|
000001f0  0d 01 22 05 f5 0d 01 2c  0b f2 73 70 6c 61 73 68  |.."....,..splash|
00000200  0d 01 36 07 fd 20 a3 0d  01 40 05 e0 0d 01 4a 04  |..6.. ...@....J.|
00000210  0d 01 54 0d dd 20 f2 73  70 6c 61 73 68 0d 01 5e  |..T.. .splash..^|
00000220  0d e7 91 3e 74 69 6d 65  20 8c 0d 01 68 16 62 6c  |...>time ...h.bl|
00000230  75 65 73 3d 62 6c 75 65  73 20 83 31 35 20 2b 31  |ues=blues .15 +1|
00000240  0d 01 72 0f e3 6c 6f 6f  70 25 3d 31 b8 31 35 0d  |..r..loop%=1.15.|
00000250  01 7c 21 63 6f 6c 6e 61  6d 65 25 3d 28 62 6c 75  |.|!colname%=(blu|
00000260  65 73 2b 6c 6f 6f 70 25  29 20 83 31 35 20 2b 31  |es+loop%) .15 +1|
00000270  0d 01 86 24 fb 20 63 6f  6c 6e 61 6d 65 25 2c 31  |...$. colname%,1|
00000280  36 2a 6c 6f 6f 70 25 2c  31 36 2a 6c 6f 6f 70 25  |6*loop%,16*loop%|
00000290  2c 32 35 35 0d 01 90 05  ed 0d 01 9a 0c 74 69 6d  |,255.........tim|
000002a0  65 3d 91 2b 33 0d 01 a4  05 cd 0d 01 ae 05 e1 0d  |e=.+3...........|
000002b0  ff                                                |.|
000002b1