Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Regulars » StarInfo/Boham/Cycles/01

StarInfo/Boham/Cycles/01

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 1997-10 A.adf » Regulars
Filename: StarInfo/Boham/Cycles/01
Read OK:
File size: 0164 bytes
Load address: 0000
Exec address: 0000
File contents
   10MODE 27:OFF
   20DIM r(15),g(15),b(15):FOR c=0 TO 15:SYS "ColourTrans_ConvertHSVToRGB",c*22.5*65536,32000,255 TO r(c),g(c),b(c):COLOUR c,r(c),g(c),b(c):NEXT c
   30c=0:ORIGIN 640,480:a=0:FOR r=0 TO 900 STEP 0.1:c=(c+1) MOD 16:GCOL c:CIRCLEFILL SINRADa*r,COSRADa*r,32:a=a+1:NEXT r
   40os=1:o=0:REPEAT:WAIT:FOR c=0 TO 15:COLOUR (o+c) MOD 16,r(c),g(c),b(c):NEXT
   50o=o+os:IF o>15 THEN o=0
   60IF o<0 THEN o=15
   70IF INKEY(0)<>-1 THEN os=-os
   80UNTIL FALSE


� 27:�
�� r(15),g(15),b(15):� c=0 � 15:ș "ColourTrans_ConvertHSVToRGB",c*22.5*65536,32000,255 � r(c),g(c),b(c):� c,r(c),g(c),b(c):� c
Wc=0:ȑ 640,480:a=0:� r=0 � 900 � 0.1:c=(c+1) � 16:� c:ȏȐ ��a*r,��a*r,32:a=a+1:� r
(:os=1:o=0:�:Ȗ:� c=0 � 15:� (o+c) � 16,r(c),g(c),b(c):�
2o=o+os:� o>15 � o=0
<� o<0 � o=15
F� �(0)<>-1 � os=-os
P� �
�
00000000  0d 00 0a 0a eb 20 32 37  3a 87 0d 00 14 82 de 20  |..... 27:...... |
00000010  72 28 31 35 29 2c 67 28  31 35 29 2c 62 28 31 35  |r(15),g(15),b(15|
00000020  29 3a e3 20 63 3d 30 20  b8 20 31 35 3a c8 99 20  |):. c=0 . 15:.. |
00000030  22 43 6f 6c 6f 75 72 54  72 61 6e 73 5f 43 6f 6e  |"ColourTrans_Con|
00000040  76 65 72 74 48 53 56 54  6f 52 47 42 22 2c 63 2a  |vertHSVToRGB",c*|
00000050  32 32 2e 35 2a 36 35 35  33 36 2c 33 32 30 30 30  |22.5*65536,32000|
00000060  2c 32 35 35 20 b8 20 72  28 63 29 2c 67 28 63 29  |,255 . r(c),g(c)|
00000070  2c 62 28 63 29 3a fb 20  63 2c 72 28 63 29 2c 67  |,b(c):. c,r(c),g|
00000080  28 63 29 2c 62 28 63 29  3a ed 20 63 0d 00 1e 57  |(c),b(c):. c...W|
00000090  63 3d 30 3a c8 91 20 36  34 30 2c 34 38 30 3a 61  |c=0:.. 640,480:a|
000000a0  3d 30 3a e3 20 72 3d 30  20 b8 20 39 30 30 20 88  |=0:. r=0 . 900 .|
000000b0  20 30 2e 31 3a 63 3d 28  63 2b 31 29 20 83 20 31  | 0.1:c=(c+1) . 1|
000000c0  36 3a e6 20 63 3a c8 8f  c8 90 20 b5 b2 61 2a 72  |6:. c:.... ..a*r|
000000d0  2c 9b b2 61 2a 72 2c 33  32 3a 61 3d 61 2b 31 3a  |,..a*r,32:a=a+1:|
000000e0  ed 20 72 0d 00 28 3a 6f  73 3d 31 3a 6f 3d 30 3a  |. r..(:os=1:o=0:|
000000f0  f5 3a c8 96 3a e3 20 63  3d 30 20 b8 20 31 35 3a  |.:..:. c=0 . 15:|
00000100  fb 20 28 6f 2b 63 29 20  83 20 31 36 2c 72 28 63  |. (o+c) . 16,r(c|
00000110  29 2c 67 28 63 29 2c 62  28 63 29 3a ed 0d 00 32  |),g(c),b(c):...2|
00000120  17 6f 3d 6f 2b 6f 73 3a  e7 20 6f 3e 31 35 20 8c  |.o=o+os:. o>15 .|
00000130  20 6f 3d 30 0d 00 3c 10  e7 20 6f 3c 30 20 8c 20  | o=0..<.. o<0 . |
00000140  6f 3d 31 35 0d 00 46 17  e7 20 a6 28 30 29 3c 3e  |o=15..F.. .(0)<>|
00000150  2d 31 20 8c 20 6f 73 3d  2d 6f 73 0d 00 50 07 fd  |-1 . os=-os..P..|
00000160  20 a3 0d ff                                       | ...|
00000164