Home » Archimedes archive » Acorn User » AU 1993-05.adf » !StarInfo/Files/Interpol

!StarInfo/Files/Interpol

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 1993-05.adf
Filename: !StarInfo/Files/Interpol
Read OK:
File size: 04F9 bytes
Load address: FFFFFB44
Exec address: 78BCE77C
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM     >Interpol (Info6)
   20REM By  DCA
   30REM For 32-bit machines (RO3)
   40REM (c) BAU May 1993
   50:
   60MODE 13
   70OFF
   80*POINTER 1
   90DIM rgb%(1,2)
  100FOR i%=0 TO 1
  110 FOR j%=0 TO 2
  120  rgb%(i%,j%)=RND(256)-1
  130 NEXT
  140NEXT
  150steps%=32
  160flags%=&100
  170quit%=FALSE
  180PROCinterpolate
  190PRINTTAB(12,16)"Drag colour bars"
  200PRINTTAB(12,20)"+, - alter steps"
  210PRINTTAB(12,22)"D toggles dither"
  220REPEAT
  230 FOR i%=0 TO 1
  240  FOR j%=0 TO 2
  250   MOUSE mx%,my%,mb%
  260   x%=640+(i%*2-1)*460+(j%-1)*80
  270   IF ABS(x%-mx%)<20 AND (mb% AND 5)>0 THEN
  280    y%=(my%-100) DIV 2
  290    IF y%<0 y%=0 ELSE IF y%>255 y%=255
  300    rgb%(i%,j%)=y%
  310    GCOL 0 TINT 0
  320    RECTANGLE FILL x%-20,100+2*rgb%(i%,j%)+4,40,512-(2*rgb%(i%,j%))
  330    PROCinterpolate
  340   ENDIF
  350   GCOL 3<<(2*j%) TINT 192
  360   RECTANGLE FILL x%-20,100,40,2*rgb%(i%,j%)
  370  NEXT
  380 NEXT
  390 CASE INKEY$(0) OF
  400  WHEN "+","=":IF steps%<256 steps%=steps%<<1:PROCinterpolate
  410  WHEN "-","_":IF steps%>4 steps%=steps%>>1:PROCinterpolate
  420  WHEN "D","d":flags%=&100-flags%:PROCinterpolate
  430  WHEN "Q","q":quit%=TRUE
  440 ENDCASE
  450UNTIL quit%
  460CLS
  470END
  480:
  490DEF PROCinterpolate
  500LOCAL s,col%,j%,k%,width%
  510width%=1280 DIV steps%
  520FOR k%=0 TO steps%-1
  530 s=k%/(steps%-1)
  540 col%=0
  550 FOR j%=0 TO 2
  560  col%=col%+((rgb%(0,j%)+s*(rgb%(1,j%)-rgb%(0,j%)))<<(8+8*j%))
  570 NEXT
  580 SYS "ColourTrans_SetGCOL",col%,,,flags%
  590 RECTANGLE FILL k%*width%,640,width%,300
  600NEXT
  610ENDPROC

�     >Interpol (Info6)

� By  DCA
� For 32-bit machines (RO3)
(� (c) BAU May 1993
2:
<� 13
F�
P*POINTER 1
Z� rgb%(1,2)
d� i%=0 � 1
n � j%=0 � 2
x  rgb%(i%,j%)=�(256)-1
� �
��
�
steps%=32
�flags%=&100
�quit%=�
��interpolate
��12,16)"Drag colour bars"
��12,20)"+, - alter steps"
��12,22)"D toggles dither"
��
� � i%=0 � 1
�  � j%=0 � 2
�   ȗ mx%,my%,mb%
$   x%=640+(i%*2-1)*460+(j%-1)*80
%   � �(x%-mx%)<20 � (mb% � 5)>0 �
    y%=(my%-100) � 2
"%    � y%<0 y%=0 � � y%>255 y%=255
,    rgb%(i%,j%)=y%
6    � 0 Ȝ 0
@>    ȓ Ȑ x%-20,100+2*rgb%(i%,j%)+4,40,512-(2*rgb%(i%,j%))
J    �interpolate
T   �
^   � 3<<(2*j%) Ȝ 192
h'   ȓ Ȑ x%-20,100,40,2*rgb%(i%,j%)
r  �
| �
� Ȏ �(0) �
�:  � "+","=":� steps%<256 steps%=steps%<<1:�interpolate
�8  � "-","_":� steps%>4 steps%=steps%>>1:�interpolate
�/  � "D","d":flags%=&100-flags%:�interpolate
�  � "Q","q":quit%=�
� �
�� quit%
��
��
�:
�� �interpolate
�� s,col%,j%,k%,width%
�width%=1280 � steps%
� k%=0 � steps%-1
 s=k%/(steps%-1)
 col%=0
& � j%=0 � 2
0B  col%=col%+((rgb%(0,j%)+s*(rgb%(1,j%)-rgb%(0,j%)))<<(8+8*j%))
: �
D+ ș "ColourTrans_SetGCOL",col%,,,flags%
N# ȓ Ȑ k%*width%,640,width%,300
X�
b�
�
00000000  0d 00 0a 1b f4 20 20 20  20 20 3e 49 6e 74 65 72  |.....     >Inter|
00000010  70 6f 6c 20 28 49 6e 66  6f 36 29 0d 00 14 0d f4  |pol (Info6).....|
00000020  20 42 79 20 20 44 43 41  0d 00 1e 1f f4 20 46 6f  | By  DCA..... Fo|
00000030  72 20 33 32 2d 62 69 74  20 6d 61 63 68 69 6e 65  |r 32-bit machine|
00000040  73 20 28 52 4f 33 29 0d  00 28 16 f4 20 28 63 29  |s (RO3)..(.. (c)|
00000050  20 42 41 55 20 4d 61 79  20 31 39 39 33 0d 00 32  | BAU May 1993..2|
00000060  05 3a 0d 00 3c 08 eb 20  31 33 0d 00 46 05 87 0d  |.:..<.. 13..F...|
00000070  00 50 0e 2a 50 4f 49 4e  54 45 52 20 31 0d 00 5a  |.P.*POINTER 1..Z|
00000080  0f de 20 72 67 62 25 28  31 2c 32 29 0d 00 64 0e  |.. rgb%(1,2)..d.|
00000090  e3 20 69 25 3d 30 20 b8  20 31 0d 00 6e 0f 20 e3  |. i%=0 . 1..n. .|
000000a0  20 6a 25 3d 30 20 b8 20  32 0d 00 78 1a 20 20 72  | j%=0 . 2..x.  r|
000000b0  67 62 25 28 69 25 2c 6a  25 29 3d b3 28 32 35 36  |gb%(i%,j%)=.(256|
000000c0  29 2d 31 0d 00 82 06 20  ed 0d 00 8c 05 ed 0d 00  |)-1.... ........|
000000d0  96 0d 73 74 65 70 73 25  3d 33 32 0d 00 a0 0f 66  |..steps%=32....f|
000000e0  6c 61 67 73 25 3d 26 31  30 30 0d 00 aa 0b 71 75  |lags%=&100....qu|
000000f0  69 74 25 3d a3 0d 00 b4  10 f2 69 6e 74 65 72 70  |it%=......interp|
00000100  6f 6c 61 74 65 0d 00 be  1e f1 8a 31 32 2c 31 36  |olate......12,16|
00000110  29 22 44 72 61 67 20 63  6f 6c 6f 75 72 20 62 61  |)"Drag colour ba|
00000120  72 73 22 0d 00 c8 1e f1  8a 31 32 2c 32 30 29 22  |rs"......12,20)"|
00000130  2b 2c 20 2d 20 61 6c 74  65 72 20 73 74 65 70 73  |+, - alter steps|
00000140  22 0d 00 d2 1e f1 8a 31  32 2c 32 32 29 22 44 20  |"......12,22)"D |
00000150  74 6f 67 67 6c 65 73 20  64 69 74 68 65 72 22 0d  |toggles dither".|
00000160  00 dc 05 f5 0d 00 e6 0f  20 e3 20 69 25 3d 30 20  |........ . i%=0 |
00000170  b8 20 31 0d 00 f0 10 20  20 e3 20 6a 25 3d 30 20  |. 1....  . j%=0 |
00000180  b8 20 32 0d 00 fa 15 20  20 20 c8 97 20 6d 78 25  |. 2....   .. mx%|
00000190  2c 6d 79 25 2c 6d 62 25  0d 01 04 24 20 20 20 78  |,my%,mb%...$   x|
000001a0  25 3d 36 34 30 2b 28 69  25 2a 32 2d 31 29 2a 34  |%=640+(i%*2-1)*4|
000001b0  36 30 2b 28 6a 25 2d 31  29 2a 38 30 0d 01 0e 25  |60+(j%-1)*80...%|
000001c0  20 20 20 e7 20 94 28 78  25 2d 6d 78 25 29 3c 32  |   . .(x%-mx%)<2|
000001d0  30 20 80 20 28 6d 62 25  20 80 20 35 29 3e 30 20  |0 . (mb% . 5)>0 |
000001e0  8c 0d 01 18 18 20 20 20  20 79 25 3d 28 6d 79 25  |.....    y%=(my%|
000001f0  2d 31 30 30 29 20 81 20  32 0d 01 22 25 20 20 20  |-100) . 2.."%   |
00000200  20 e7 20 79 25 3c 30 20  79 25 3d 30 20 8b 20 e7  | . y%<0 y%=0 . .|
00000210  20 79 25 3e 32 35 35 20  79 25 3d 32 35 35 0d 01  | y%>255 y%=255..|
00000220  2c 16 20 20 20 20 72 67  62 25 28 69 25 2c 6a 25  |,.    rgb%(i%,j%|
00000230  29 3d 79 25 0d 01 36 10  20 20 20 20 e6 20 30 20  |)=y%..6.    . 0 |
00000240  c8 9c 20 30 0d 01 40 3e  20 20 20 20 c8 93 20 c8  |.. 0..@>    .. .|
00000250  90 20 78 25 2d 32 30 2c  31 30 30 2b 32 2a 72 67  |. x%-20,100+2*rg|
00000260  62 25 28 69 25 2c 6a 25  29 2b 34 2c 34 30 2c 35  |b%(i%,j%)+4,40,5|
00000270  31 32 2d 28 32 2a 72 67  62 25 28 69 25 2c 6a 25  |12-(2*rgb%(i%,j%|
00000280  29 29 0d 01 4a 14 20 20  20 20 f2 69 6e 74 65 72  |))..J.    .inter|
00000290  70 6f 6c 61 74 65 0d 01  54 08 20 20 20 cd 0d 01  |polate..T.   ...|
000002a0  5e 19 20 20 20 e6 20 33  3c 3c 28 32 2a 6a 25 29  |^.   . 3<<(2*j%)|
000002b0  20 c8 9c 20 31 39 32 0d  01 68 27 20 20 20 c8 93  | .. 192..h'   ..|
000002c0  20 c8 90 20 78 25 2d 32  30 2c 31 30 30 2c 34 30  | .. x%-20,100,40|
000002d0  2c 32 2a 72 67 62 25 28  69 25 2c 6a 25 29 0d 01  |,2*rgb%(i%,j%)..|
000002e0  72 07 20 20 ed 0d 01 7c  06 20 ed 0d 01 86 0e 20  |r.  ...|. ..... |
000002f0  c8 8e 20 bf 28 30 29 20  ca 0d 01 90 3a 20 20 c9  |.. .(0) ....:  .|
00000300  20 22 2b 22 2c 22 3d 22  3a e7 20 73 74 65 70 73  | "+","=":. steps|
00000310  25 3c 32 35 36 20 73 74  65 70 73 25 3d 73 74 65  |%<256 steps%=ste|
00000320  70 73 25 3c 3c 31 3a f2  69 6e 74 65 72 70 6f 6c  |ps%<<1:.interpol|
00000330  61 74 65 0d 01 9a 38 20  20 c9 20 22 2d 22 2c 22  |ate...8  . "-","|
00000340  5f 22 3a e7 20 73 74 65  70 73 25 3e 34 20 73 74  |_":. steps%>4 st|
00000350  65 70 73 25 3d 73 74 65  70 73 25 3e 3e 31 3a f2  |eps%=steps%>>1:.|
00000360  69 6e 74 65 72 70 6f 6c  61 74 65 0d 01 a4 2f 20  |interpolate.../ |
00000370  20 c9 20 22 44 22 2c 22  64 22 3a 66 6c 61 67 73  | . "D","d":flags|
00000380  25 3d 26 31 30 30 2d 66  6c 61 67 73 25 3a f2 69  |%=&100-flags%:.i|
00000390  6e 74 65 72 70 6f 6c 61  74 65 0d 01 ae 17 20 20  |nterpolate....  |
000003a0  c9 20 22 51 22 2c 22 71  22 3a 71 75 69 74 25 3d  |. "Q","q":quit%=|
000003b0  b9 0d 01 b8 06 20 cb 0d  01 c2 0b fd 20 71 75 69  |..... ...... qui|
000003c0  74 25 0d 01 cc 05 db 0d  01 d6 05 e0 0d 01 e0 05  |t%..............|
000003d0  3a 0d 01 ea 12 dd 20 f2  69 6e 74 65 72 70 6f 6c  |:..... .interpol|
000003e0  61 74 65 0d 01 f4 19 ea  20 73 2c 63 6f 6c 25 2c  |ate..... s,col%,|
000003f0  6a 25 2c 6b 25 2c 77 69  64 74 68 25 0d 01 fe 18  |j%,k%,width%....|
00000400  77 69 64 74 68 25 3d 31  32 38 30 20 81 20 73 74  |width%=1280 . st|
00000410  65 70 73 25 0d 02 08 15  e3 20 6b 25 3d 30 20 b8  |eps%..... k%=0 .|
00000420  20 73 74 65 70 73 25 2d  31 0d 02 12 14 20 73 3d  | steps%-1.... s=|
00000430  6b 25 2f 28 73 74 65 70  73 25 2d 31 29 0d 02 1c  |k%/(steps%-1)...|
00000440  0b 20 63 6f 6c 25 3d 30  0d 02 26 0f 20 e3 20 6a  |. col%=0..&. . j|
00000450  25 3d 30 20 b8 20 32 0d  02 30 42 20 20 63 6f 6c  |%=0 . 2..0B  col|
00000460  25 3d 63 6f 6c 25 2b 28  28 72 67 62 25 28 30 2c  |%=col%+((rgb%(0,|
00000470  6a 25 29 2b 73 2a 28 72  67 62 25 28 31 2c 6a 25  |j%)+s*(rgb%(1,j%|
00000480  29 2d 72 67 62 25 28 30  2c 6a 25 29 29 29 3c 3c  |)-rgb%(0,j%)))<<|
00000490  28 38 2b 38 2a 6a 25 29  29 0d 02 3a 06 20 ed 0d  |(8+8*j%))..:. ..|
000004a0  02 44 2b 20 c8 99 20 22  43 6f 6c 6f 75 72 54 72  |.D+ .. "ColourTr|
000004b0  61 6e 73 5f 53 65 74 47  43 4f 4c 22 2c 63 6f 6c  |ans_SetGCOL",col|
000004c0  25 2c 2c 2c 66 6c 61 67  73 25 0d 02 4e 23 20 c8  |%,,,flags%..N# .|
000004d0  93 20 c8 90 20 6b 25 2a  77 69 64 74 68 25 2c 36  |. .. k%*width%,6|
000004e0  34 30 2c 77 69 64 74 68  25 2c 33 30 30 0d 02 58  |40,width%,300..X|
000004f0  05 ed 0d 02 62 05 e1 0d  ff                       |....b....|
000004f9