Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2 » StarInfo/Fletcher/Tanner/Vibe/LEAF
StarInfo/Fletcher/Tanner/Vibe/LEAF
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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199801_2.adf » Regulars2 |
Filename: | StarInfo/Fletcher/Tanner/Vibe/LEAF |
Read OK: | ✔ |
File size: | 0A29 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM > LEAF 20 30MODE21:OFF 40FORY%=0TO1024STEP2 50R%=255-255*Y%/1024:G%=128*Y%/1024:B%=255*Y%/1024 60X%=0:MOVEX%,Y% 70REPEAT 80R1%=RND(33)-17+R%:IF R1%>255 R1%=255 90IF R1%<0 R1%=0 100G1%=RND(33)-17+G%:IF G1%>255 G1%=255 110IF G1%<0 G1%=0 120B1%=RND(33)-17+B%:IF B1%>255 B1%=255 130IF B1%<0 B1%=0 140X%+=RND(32) 150PROCRGB(R1%,G1%,B1%):DRAWX%,Y% 160UNTILX%>1280 170NEXT 180RESTORE:READ K% 190DIMGX1(K%),GY1(K%),GX2(K%),GY2(K%),M%(K%),C%(K%),F%(K%) 200FORN%=1TOK%:READGX1(N%),GY1(N%),GX2(N%),GY2(N%),M%(N%),C%(N%),F%(N%) 210GX1(N%)=GX1(N%)/16:GY1(N%)=(GY1(N%)-8)/16 220GX2(N%)=GX2(N%)/16:GY2(N%)=(GY2(N%)-8)/16 230NEXT:PROCREPLACE(64,0,864,830,50,0,1,1,0) 240END 250 260DEFPROCREPLACE(X1,Y1,X2,Y2,L%,C%,M%,F%,BC%) 270LOCAL DX,DY,X3,Y3,X4,Y4,N% 280IF L%=0 OR (X2-X1)^2+(Y2-Y1)^2<=16 THEN 290GCOL C%:PROCL(X1,Y1,X2,Y2,C%,BC%) 300ELSE 310DX=X2-X1:DY=Y2-Y1 320FORN%=1TOK% 330IFF%=1 THEN 340X3=DX*GX1(N%)-M%*DY*GY1(N%)+X1:Y3=DY*GX1(N%)+M%*DX*GY1(N%)+Y1 350X4=DX*GX2(N%)-M%*DY*GY2(N%)+X1:Y4=DY*GX2(N%)+M%*DX*GY2(N%)+Y1 360PROCREPLACE(X3,Y3,X4,Y4,L%-1,C%(N%),M%*M%(N%),F%(N%),N%) 370ELSE 380PROCREPLACE(X1,Y1,X2,Y2,0,C%,M%,F%,N%) 390ENDIF 400NEXT 410ENDIF 420ENDPROC 430 440DEFPROCL(X1,Y1,X2,Y2,C%,BC%) 450LOCAL L,T1,T2,W,XA,YA,XB,YB,XC,YC,XD,YD 460L=SQR((X1-X2)^2+(Y1-Y2)^2):W=L/8:IF X1>X2 L=-L 470IF L<>0 THEN 480T1=ASN((Y1-Y2)/L):T2=T1+PI:W=W/2 490T3=T2+PI:T4=T3+PI 500XA=X1+W*SINT3:YA=Y1+W*COST3 510XB=X1+W*SINT4:YB=Y1+W*COST4 520XC=X2+.7*W*SINT4:YC=Y2+.7*W*COST4 530XD=X2+.7*W*SINT3:YD=Y2+.7*W*COST3 540IF BC%=1 MOVEXA,YA:MOVEXB,YB:PLOT85,XD,YD:PLOT85,XC,YC 550W=INT(SQR((XA-XB)^2+(YA-YB)^2)/2):IF W=0 W=1 560IF C%<>12 THEN 570FOR L=0 TO W 580X1=(XA*L+XB*(W-L))/W:Y1=(YA*L+YB*(W-L))/W 590X2=(XD*L+XC*(W-L))/W:Y2=(YD*L+YC*(W-L))/W 600IF BC%=1 PROCBARK(X1,Y1,X2,Y2) 610NEXT 620ELSE 630PROCRGB(0,RND(224)+31,0):LINE X1,Y1,X2,Y2 640PROCRGB(0,RND(224)+31,0):POINT X2+2,Y2 650PROCRGB(0,RND(224)+31,0):POINT X2-2,Y2 660PROCRGB(0,RND(224)+31,0):POINT X2,Y2+2 670PROCRGB(0,RND(224)+31,0):POINT X2,Y2-2 680ENDIF 690ENDIF 700ENDPROC 710 720DEFPROCBARK(X1,Y1,X3,Y3) 730LOCAL X2,Y2,R,T1,T2 740R=RND(1):X2=R*X1+(1-R)*X3:Y2=R*Y1+(1-R)*Y3 750POINT X2,Y2 760IF (X2-X1)^2+(Y2-Y1)^2>2000THEN 770PROCBARK(X1,Y1,X2,Y2) 780ELSE 790T1=RND(255):T2=255-T1 800PROCRGB((254*T1+160*T2)/255,(114*T1+66*T2)/255,(24*T1)/255) 810LINE X1,Y1,X2,Y2 820ENDIF 830IF (X3-X2)^2+(Y3-Y2)^2>2000THEN 840PROCBARK(X2,Y2,X3,Y3) 850ELSE 860T1=RND(255):T2=255-T1 870PROCRGB((254*T1+160*T2)/255,(114*T1+66*T2)/255,(24*T1)/255) 880LINE X2,Y2,X3,Y3 890ENDIF 900ENDPROC 910 920DEFPROCRGB(R%,G%,B%) 930LOCAL C%:C%=(R%<<8)+(G%<<16)+(B%<<24) 940SYS "ColourTrans_SetGCOL",C%,,,&100,0 950ENDPROC 960 970DATA 5 :REM Number of elements 980 990REM x1,y1,x2,y2,mirror,colour,fertility 1000DATA 0, 8, 6, 8, 1, 6, 0 1010DATA 6, 8,16, 3, -1, 12, 1 1020DATA 6, 8,13,12, -1, 4, 1 1030DATA 3, 8, 4,10, 1, 12, 1 1040DATA 3, 8, 5, 5, -1, 4, 1
� > LEAF �21:� (�Y%=0�1024�2 24R%=255-255*Y%/1024:G%=128*Y%/1024:B%=255*Y%/1024 <X%=0:�X%,Y% F� P%R1%=�(33)-17+R%:� R1%>255 R1%=255 Z� R1%<0 R1%=0 d%G1%=�(33)-17+G%:� G1%>255 G1%=255 n� G1%<0 G1%=0 x%B1%=�(33)-17+B%:� B1%>255 B1%=255 �� B1%<0 B1%=0 � X%+=�(32) ��RGB(R1%,G1%,B1%):�X%,Y% ��X%>1280 �� � �:� K% �9�GX1(K%),GY1(K%),GX2(K%),GY2(K%),M%(K%),C%(K%),F%(K%) �B�N%=1�K%:�GX1(N%),GY1(N%),GX2(N%),GY2(N%),M%(N%),C%(N%),F%(N%) �-GX1(N%)=GX1(N%)/16:GY1(N%)=(GY1(N%)-8)/16 �-GX2(N%)=GX2(N%)/16:GY2(N%)=(GY2(N%)-8)/16 �'�:�REPLACE(64,0,864,830,50,0,1,1,0) �� � *��REPLACE(X1,Y1,X2,Y2,L%,C%,M%,F%,BC%) � DX,DY,X3,Y3,X4,Y4,N% &� L%=0 � (X2-X1)^2+(Y2-Y1)^2<=16 � "� C%:�L(X1,Y1,X2,Y2,C%,BC%) ,� 6DX=X2-X1:DY=Y2-Y1 @�N%=1�K% J�F%=1 � TAX3=DX*GX1(N%)-M%*DY*GY1(N%)+X1:Y3=DY*GX1(N%)+M%*DX*GY1(N%)+Y1 ^AX4=DX*GX2(N%)-M%*DY*GY2(N%)+X1:Y4=DY*GX2(N%)+M%*DX*GY2(N%)+Y1 h9�REPLACE(X3,Y3,X4,Y4,L%-1,C%(N%),M%*M%(N%),F%(N%),N%) r� |'�REPLACE(X1,Y1,X2,Y2,0,C%,M%,F%,N%) �� �� �� �� � ���L(X1,Y1,X2,Y2,C%,BC%) �'� L,T1,T2,W,XA,YA,XB,YB,XC,YC,XD,YD �/L=�((X1-X2)^2+(Y1-Y2)^2):W=L/8:� X1>X2 L=-L �� L<>0 � �!T1=�((Y1-Y2)/L):T2=T1+�:W=W/2 �T3=T2+�:T4=T3+� �XA=X1+W*�T3:YA=Y1+W*�T3 �XB=X1+W*�T4:YB=Y1+W*�T4 !XC=X2+.7*W*�T4:YC=Y2+.7*W*�T4 !XD=X2+.7*W*�T3:YD=Y2+.7*W*�T3 -� BC%=1 �XA,YA:�XB,YB:�85,XD,YD:�85,XC,YC &+W=�(�((XA-XB)^2+(YA-YB)^2)/2):� W=0 W=1 0� C%<>12 � : � L=0 � W D-X1=(XA*L+XB*(W-L))/W:Y1=(YA*L+YB*(W-L))/W N-X2=(XD*L+XC*(W-L))/W:Y2=(YD*L+YC*(W-L))/W X� BC%=1 �BARK(X1,Y1,X2,Y2) b� l� v%�RGB(0,�(224)+31,0):� X1,Y1,X2,Y2 �"�RGB(0,�(224)+31,0):Ȓ X2+2,Y2 �"�RGB(0,�(224)+31,0):Ȓ X2-2,Y2 �"�RGB(0,�(224)+31,0):Ȓ X2,Y2+2 �"�RGB(0,�(224)+31,0):Ȓ X2,Y2-2 �� �� �� � ���BARK(X1,Y1,X3,Y3) �� X2,Y2,R,T1,T2 �,R=�(1):X2=R*X1+(1-R)*X3:Y2=R*Y1+(1-R)*Y3 �Ȓ X2,Y2 �� (X2-X1)^2+(Y2-Y1)^2>2000� �BARK(X1,Y1,X2,Y2) � T1=�(255):T2=255-T1 <�RGB((254*T1+160*T2)/255,(114*T1+66*T2)/255,(24*T1)/255) *� X1,Y1,X2,Y2 4� >� (X3-X2)^2+(Y3-Y2)^2>2000� H�BARK(X2,Y2,X3,Y3) R� \T1=�(255):T2=255-T1 f<�RGB((254*T1+160*T2)/255,(114*T1+66*T2)/255,(24*T1)/255) p� X2,Y2,X3,Y3 z� �� � ���RGB(R%,G%,B%) �%� C%:C%=(R%<<8)+(G%<<16)+(B%<<24) �(ș "ColourTrans_SetGCOL",C%,,,&100,0 �� � �� 5 :REM Number of elements � �*� x1,y1,x2,y2,mirror,colour,fertility �)� 0, 8, 6, 8, 1, 6, 0 �)� 6, 8,16, 3, -1, 12, 1 �)� 6, 8,13,12, -1, 4, 1 )� 3, 8, 4,10, 1, 12, 1 )� 3, 8, 5, 5, -1, 4, 1 �
00000000 0d 00 0a 0c f4 20 3e 20 4c 45 41 46 0d 00 14 04 |..... > LEAF....| 00000010 0d 00 1e 09 eb 32 31 3a 87 0d 00 28 10 e3 59 25 |.....21:...(..Y%| 00000020 3d 30 b8 31 30 32 34 88 32 0d 00 32 34 52 25 3d |=0.1024.2..24R%=| 00000030 32 35 35 2d 32 35 35 2a 59 25 2f 31 30 32 34 3a |255-255*Y%/1024:| 00000040 47 25 3d 31 32 38 2a 59 25 2f 31 30 32 34 3a 42 |G%=128*Y%/1024:B| 00000050 25 3d 32 35 35 2a 59 25 2f 31 30 32 34 0d 00 3c |%=255*Y%/1024..<| 00000060 0f 58 25 3d 30 3a ec 58 25 2c 59 25 0d 00 46 05 |.X%=0:.X%,Y%..F.| 00000070 f5 0d 00 50 25 52 31 25 3d b3 28 33 33 29 2d 31 |...P%R1%=.(33)-1| 00000080 37 2b 52 25 3a e7 20 52 31 25 3e 32 35 35 20 52 |7+R%:. R1%>255 R| 00000090 31 25 3d 32 35 35 0d 00 5a 11 e7 20 52 31 25 3c |1%=255..Z.. R1%<| 000000a0 30 20 52 31 25 3d 30 0d 00 64 25 47 31 25 3d b3 |0 R1%=0..d%G1%=.| 000000b0 28 33 33 29 2d 31 37 2b 47 25 3a e7 20 47 31 25 |(33)-17+G%:. G1%| 000000c0 3e 32 35 35 20 47 31 25 3d 32 35 35 0d 00 6e 11 |>255 G1%=255..n.| 000000d0 e7 20 47 31 25 3c 30 20 47 31 25 3d 30 0d 00 78 |. G1%<0 G1%=0..x| 000000e0 25 42 31 25 3d b3 28 33 33 29 2d 31 37 2b 42 25 |%B1%=.(33)-17+B%| 000000f0 3a e7 20 42 31 25 3e 32 35 35 20 42 31 25 3d 32 |:. B1%>255 B1%=2| 00000100 35 35 0d 00 82 11 e7 20 42 31 25 3c 30 20 42 31 |55..... B1%<0 B1| 00000110 25 3d 30 0d 00 8c 0d 58 25 2b 3d b3 28 33 32 29 |%=0....X%+=.(32)| 00000120 0d 00 96 1c f2 52 47 42 28 52 31 25 2c 47 31 25 |.....RGB(R1%,G1%| 00000130 2c 42 31 25 29 3a df 58 25 2c 59 25 0d 00 a0 0c |,B1%):.X%,Y%....| 00000140 fd 58 25 3e 31 32 38 30 0d 00 aa 05 ed 0d 00 b4 |.X%>1280........| 00000150 0a f7 3a f3 20 4b 25 0d 00 be 39 de 47 58 31 28 |..:. K%...9.GX1(| 00000160 4b 25 29 2c 47 59 31 28 4b 25 29 2c 47 58 32 28 |K%),GY1(K%),GX2(| 00000170 4b 25 29 2c 47 59 32 28 4b 25 29 2c 4d 25 28 4b |K%),GY2(K%),M%(K| 00000180 25 29 2c 43 25 28 4b 25 29 2c 46 25 28 4b 25 29 |%),C%(K%),F%(K%)| 00000190 0d 00 c8 42 e3 4e 25 3d 31 b8 4b 25 3a f3 47 58 |...B.N%=1.K%:.GX| 000001a0 31 28 4e 25 29 2c 47 59 31 28 4e 25 29 2c 47 58 |1(N%),GY1(N%),GX| 000001b0 32 28 4e 25 29 2c 47 59 32 28 4e 25 29 2c 4d 25 |2(N%),GY2(N%),M%| 000001c0 28 4e 25 29 2c 43 25 28 4e 25 29 2c 46 25 28 4e |(N%),C%(N%),F%(N| 000001d0 25 29 0d 00 d2 2d 47 58 31 28 4e 25 29 3d 47 58 |%)...-GX1(N%)=GX| 000001e0 31 28 4e 25 29 2f 31 36 3a 47 59 31 28 4e 25 29 |1(N%)/16:GY1(N%)| 000001f0 3d 28 47 59 31 28 4e 25 29 2d 38 29 2f 31 36 0d |=(GY1(N%)-8)/16.| 00000200 00 dc 2d 47 58 32 28 4e 25 29 3d 47 58 32 28 4e |..-GX2(N%)=GX2(N| 00000210 25 29 2f 31 36 3a 47 59 32 28 4e 25 29 3d 28 47 |%)/16:GY2(N%)=(G| 00000220 59 32 28 4e 25 29 2d 38 29 2f 31 36 0d 00 e6 27 |Y2(N%)-8)/16...'| 00000230 ed 3a f2 52 45 50 4c 41 43 45 28 36 34 2c 30 2c |.:.REPLACE(64,0,| 00000240 38 36 34 2c 38 33 30 2c 35 30 2c 30 2c 31 2c 31 |864,830,50,0,1,1| 00000250 2c 30 29 0d 00 f0 05 e0 0d 00 fa 04 0d 01 04 2a |,0)............*| 00000260 dd f2 52 45 50 4c 41 43 45 28 58 31 2c 59 31 2c |..REPLACE(X1,Y1,| 00000270 58 32 2c 59 32 2c 4c 25 2c 43 25 2c 4d 25 2c 46 |X2,Y2,L%,C%,M%,F| 00000280 25 2c 42 43 25 29 0d 01 0e 1a ea 20 44 58 2c 44 |%,BC%)..... DX,D| 00000290 59 2c 58 33 2c 59 33 2c 58 34 2c 59 34 2c 4e 25 |Y,X3,Y3,X4,Y4,N%| 000002a0 0d 01 18 26 e7 20 4c 25 3d 30 20 84 20 28 58 32 |...&. L%=0 . (X2| 000002b0 2d 58 31 29 5e 32 2b 28 59 32 2d 59 31 29 5e 32 |-X1)^2+(Y2-Y1)^2| 000002c0 3c 3d 31 36 20 8c 0d 01 22 1f e6 20 43 25 3a f2 |<=16 ...".. C%:.| 000002d0 4c 28 58 31 2c 59 31 2c 58 32 2c 59 32 2c 43 25 |L(X1,Y1,X2,Y2,C%| 000002e0 2c 42 43 25 29 0d 01 2c 05 cc 0d 01 36 15 44 58 |,BC%)..,....6.DX| 000002f0 3d 58 32 2d 58 31 3a 44 59 3d 59 32 2d 59 31 0d |=X2-X1:DY=Y2-Y1.| 00000300 01 40 0c e3 4e 25 3d 31 b8 4b 25 0d 01 4a 0b e7 |.@..N%=1.K%..J..| 00000310 46 25 3d 31 20 8c 0d 01 54 41 58 33 3d 44 58 2a |F%=1 ...TAX3=DX*| 00000320 47 58 31 28 4e 25 29 2d 4d 25 2a 44 59 2a 47 59 |GX1(N%)-M%*DY*GY| 00000330 31 28 4e 25 29 2b 58 31 3a 59 33 3d 44 59 2a 47 |1(N%)+X1:Y3=DY*G| 00000340 58 31 28 4e 25 29 2b 4d 25 2a 44 58 2a 47 59 31 |X1(N%)+M%*DX*GY1| 00000350 28 4e 25 29 2b 59 31 0d 01 5e 41 58 34 3d 44 58 |(N%)+Y1..^AX4=DX| 00000360 2a 47 58 32 28 4e 25 29 2d 4d 25 2a 44 59 2a 47 |*GX2(N%)-M%*DY*G| 00000370 59 32 28 4e 25 29 2b 58 31 3a 59 34 3d 44 59 2a |Y2(N%)+X1:Y4=DY*| 00000380 47 58 32 28 4e 25 29 2b 4d 25 2a 44 58 2a 47 59 |GX2(N%)+M%*DX*GY| 00000390 32 28 4e 25 29 2b 59 31 0d 01 68 39 f2 52 45 50 |2(N%)+Y1..h9.REP| 000003a0 4c 41 43 45 28 58 33 2c 59 33 2c 58 34 2c 59 34 |LACE(X3,Y3,X4,Y4| 000003b0 2c 4c 25 2d 31 2c 43 25 28 4e 25 29 2c 4d 25 2a |,L%-1,C%(N%),M%*| 000003c0 4d 25 28 4e 25 29 2c 46 25 28 4e 25 29 2c 4e 25 |M%(N%),F%(N%),N%| 000003d0 29 0d 01 72 05 cc 0d 01 7c 27 f2 52 45 50 4c 41 |)..r....|'.REPLA| 000003e0 43 45 28 58 31 2c 59 31 2c 58 32 2c 59 32 2c 30 |CE(X1,Y1,X2,Y2,0| 000003f0 2c 43 25 2c 4d 25 2c 46 25 2c 4e 25 29 0d 01 86 |,C%,M%,F%,N%)...| 00000400 05 cd 0d 01 90 05 ed 0d 01 9a 05 cd 0d 01 a4 05 |................| 00000410 e1 0d 01 ae 04 0d 01 b8 1b dd f2 4c 28 58 31 2c |...........L(X1,| 00000420 59 31 2c 58 32 2c 59 32 2c 43 25 2c 42 43 25 29 |Y1,X2,Y2,C%,BC%)| 00000430 0d 01 c2 27 ea 20 4c 2c 54 31 2c 54 32 2c 57 2c |...'. L,T1,T2,W,| 00000440 58 41 2c 59 41 2c 58 42 2c 59 42 2c 58 43 2c 59 |XA,YA,XB,YB,XC,Y| 00000450 43 2c 58 44 2c 59 44 0d 01 cc 2f 4c 3d b6 28 28 |C,XD,YD.../L=.((| 00000460 58 31 2d 58 32 29 5e 32 2b 28 59 31 2d 59 32 29 |X1-X2)^2+(Y1-Y2)| 00000470 5e 32 29 3a 57 3d 4c 2f 38 3a e7 20 58 31 3e 58 |^2):W=L/8:. X1>X| 00000480 32 20 4c 3d 2d 4c 0d 01 d6 0c e7 20 4c 3c 3e 30 |2 L=-L..... L<>0| 00000490 20 8c 0d 01 e0 21 54 31 3d 98 28 28 59 31 2d 59 | ....!T1=.((Y1-Y| 000004a0 32 29 2f 4c 29 3a 54 32 3d 54 31 2b af 3a 57 3d |2)/L):T2=T1+.:W=| 000004b0 57 2f 32 0d 01 ea 13 54 33 3d 54 32 2b af 3a 54 |W/2....T3=T2+.:T| 000004c0 34 3d 54 33 2b af 0d 01 f4 1b 58 41 3d 58 31 2b |4=T3+.....XA=X1+| 000004d0 57 2a b5 54 33 3a 59 41 3d 59 31 2b 57 2a 9b 54 |W*.T3:YA=Y1+W*.T| 000004e0 33 0d 01 fe 1b 58 42 3d 58 31 2b 57 2a b5 54 34 |3....XB=X1+W*.T4| 000004f0 3a 59 42 3d 59 31 2b 57 2a 9b 54 34 0d 02 08 21 |:YB=Y1+W*.T4...!| 00000500 58 43 3d 58 32 2b 2e 37 2a 57 2a b5 54 34 3a 59 |XC=X2+.7*W*.T4:Y| 00000510 43 3d 59 32 2b 2e 37 2a 57 2a 9b 54 34 0d 02 12 |C=Y2+.7*W*.T4...| 00000520 21 58 44 3d 58 32 2b 2e 37 2a 57 2a b5 54 33 3a |!XD=X2+.7*W*.T3:| 00000530 59 44 3d 59 32 2b 2e 37 2a 57 2a 9b 54 33 0d 02 |YD=Y2+.7*W*.T3..| 00000540 1c 2d e7 20 42 43 25 3d 31 20 ec 58 41 2c 59 41 |.-. BC%=1 .XA,YA| 00000550 3a ec 58 42 2c 59 42 3a f0 38 35 2c 58 44 2c 59 |:.XB,YB:.85,XD,Y| 00000560 44 3a f0 38 35 2c 58 43 2c 59 43 0d 02 26 2b 57 |D:.85,XC,YC..&+W| 00000570 3d a8 28 b6 28 28 58 41 2d 58 42 29 5e 32 2b 28 |=.(.((XA-XB)^2+(| 00000580 59 41 2d 59 42 29 5e 32 29 2f 32 29 3a e7 20 57 |YA-YB)^2)/2):. W| 00000590 3d 30 20 57 3d 31 0d 02 30 0e e7 20 43 25 3c 3e |=0 W=1..0.. C%<>| 000005a0 31 32 20 8c 0d 02 3a 0d e3 20 4c 3d 30 20 b8 20 |12 ...:.. L=0 . | 000005b0 57 0d 02 44 2d 58 31 3d 28 58 41 2a 4c 2b 58 42 |W..D-X1=(XA*L+XB| 000005c0 2a 28 57 2d 4c 29 29 2f 57 3a 59 31 3d 28 59 41 |*(W-L))/W:Y1=(YA| 000005d0 2a 4c 2b 59 42 2a 28 57 2d 4c 29 29 2f 57 0d 02 |*L+YB*(W-L))/W..| 000005e0 4e 2d 58 32 3d 28 58 44 2a 4c 2b 58 43 2a 28 57 |N-X2=(XD*L+XC*(W| 000005f0 2d 4c 29 29 2f 57 3a 59 32 3d 28 59 44 2a 4c 2b |-L))/W:Y2=(YD*L+| 00000600 59 43 2a 28 57 2d 4c 29 29 2f 57 0d 02 58 1e e7 |YC*(W-L))/W..X..| 00000610 20 42 43 25 3d 31 20 f2 42 41 52 4b 28 58 31 2c | BC%=1 .BARK(X1,| 00000620 59 31 2c 58 32 2c 59 32 29 0d 02 62 05 ed 0d 02 |Y1,X2,Y2)..b....| 00000630 6c 05 cc 0d 02 76 25 f2 52 47 42 28 30 2c b3 28 |l....v%.RGB(0,.(| 00000640 32 32 34 29 2b 33 31 2c 30 29 3a 86 20 58 31 2c |224)+31,0):. X1,| 00000650 59 31 2c 58 32 2c 59 32 0d 02 80 22 f2 52 47 42 |Y1,X2,Y2...".RGB| 00000660 28 30 2c b3 28 32 32 34 29 2b 33 31 2c 30 29 3a |(0,.(224)+31,0):| 00000670 c8 92 20 58 32 2b 32 2c 59 32 0d 02 8a 22 f2 52 |.. X2+2,Y2...".R| 00000680 47 42 28 30 2c b3 28 32 32 34 29 2b 33 31 2c 30 |GB(0,.(224)+31,0| 00000690 29 3a c8 92 20 58 32 2d 32 2c 59 32 0d 02 94 22 |):.. X2-2,Y2..."| 000006a0 f2 52 47 42 28 30 2c b3 28 32 32 34 29 2b 33 31 |.RGB(0,.(224)+31| 000006b0 2c 30 29 3a c8 92 20 58 32 2c 59 32 2b 32 0d 02 |,0):.. X2,Y2+2..| 000006c0 9e 22 f2 52 47 42 28 30 2c b3 28 32 32 34 29 2b |.".RGB(0,.(224)+| 000006d0 33 31 2c 30 29 3a c8 92 20 58 32 2c 59 32 2d 32 |31,0):.. X2,Y2-2| 000006e0 0d 02 a8 05 cd 0d 02 b2 05 cd 0d 02 bc 05 e1 0d |................| 000006f0 02 c6 04 0d 02 d0 17 dd f2 42 41 52 4b 28 58 31 |.........BARK(X1| 00000700 2c 59 31 2c 58 33 2c 59 33 29 0d 02 da 13 ea 20 |,Y1,X3,Y3)..... | 00000710 58 32 2c 59 32 2c 52 2c 54 31 2c 54 32 0d 02 e4 |X2,Y2,R,T1,T2...| 00000720 2c 52 3d b3 28 31 29 3a 58 32 3d 52 2a 58 31 2b |,R=.(1):X2=R*X1+| 00000730 28 31 2d 52 29 2a 58 33 3a 59 32 3d 52 2a 59 31 |(1-R)*X3:Y2=R*Y1| 00000740 2b 28 31 2d 52 29 2a 59 33 0d 02 ee 0c c8 92 20 |+(1-R)*Y3...... | 00000750 58 32 2c 59 32 0d 02 f8 1f e7 20 28 58 32 2d 58 |X2,Y2..... (X2-X| 00000760 31 29 5e 32 2b 28 59 32 2d 59 31 29 5e 32 3e 32 |1)^2+(Y2-Y1)^2>2| 00000770 30 30 30 8c 0d 03 02 16 f2 42 41 52 4b 28 58 31 |000......BARK(X1| 00000780 2c 59 31 2c 58 32 2c 59 32 29 0d 03 0c 05 cc 0d |,Y1,X2,Y2)......| 00000790 03 16 17 54 31 3d b3 28 32 35 35 29 3a 54 32 3d |...T1=.(255):T2=| 000007a0 32 35 35 2d 54 31 0d 03 20 3c f2 52 47 42 28 28 |255-T1.. <.RGB((| 000007b0 32 35 34 2a 54 31 2b 31 36 30 2a 54 32 29 2f 32 |254*T1+160*T2)/2| 000007c0 35 35 2c 28 31 31 34 2a 54 31 2b 36 36 2a 54 32 |55,(114*T1+66*T2| 000007d0 29 2f 32 35 35 2c 28 32 34 2a 54 31 29 2f 32 35 |)/255,(24*T1)/25| 000007e0 35 29 0d 03 2a 11 86 20 58 31 2c 59 31 2c 58 32 |5)..*.. X1,Y1,X2| 000007f0 2c 59 32 0d 03 34 05 cd 0d 03 3e 1f e7 20 28 58 |,Y2..4....>.. (X| 00000800 33 2d 58 32 29 5e 32 2b 28 59 33 2d 59 32 29 5e |3-X2)^2+(Y3-Y2)^| 00000810 32 3e 32 30 30 30 8c 0d 03 48 16 f2 42 41 52 4b |2>2000...H..BARK| 00000820 28 58 32 2c 59 32 2c 58 33 2c 59 33 29 0d 03 52 |(X2,Y2,X3,Y3)..R| 00000830 05 cc 0d 03 5c 17 54 31 3d b3 28 32 35 35 29 3a |....\.T1=.(255):| 00000840 54 32 3d 32 35 35 2d 54 31 0d 03 66 3c f2 52 47 |T2=255-T1..f<.RG| 00000850 42 28 28 32 35 34 2a 54 31 2b 31 36 30 2a 54 32 |B((254*T1+160*T2| 00000860 29 2f 32 35 35 2c 28 31 31 34 2a 54 31 2b 36 36 |)/255,(114*T1+66| 00000870 2a 54 32 29 2f 32 35 35 2c 28 32 34 2a 54 31 29 |*T2)/255,(24*T1)| 00000880 2f 32 35 35 29 0d 03 70 11 86 20 58 32 2c 59 32 |/255)..p.. X2,Y2| 00000890 2c 58 33 2c 59 33 0d 03 7a 05 cd 0d 03 84 05 e1 |,X3,Y3..z.......| 000008a0 0d 03 8e 04 0d 03 98 13 dd f2 52 47 42 28 52 25 |..........RGB(R%| 000008b0 2c 47 25 2c 42 25 29 0d 03 a2 25 ea 20 43 25 3a |,G%,B%)...%. C%:| 000008c0 43 25 3d 28 52 25 3c 3c 38 29 2b 28 47 25 3c 3c |C%=(R%<<8)+(G%<<| 000008d0 31 36 29 2b 28 42 25 3c 3c 32 34 29 0d 03 ac 28 |16)+(B%<<24)...(| 000008e0 c8 99 20 22 43 6f 6c 6f 75 72 54 72 61 6e 73 5f |.. "ColourTrans_| 000008f0 53 65 74 47 43 4f 4c 22 2c 43 25 2c 2c 2c 26 31 |SetGCOL",C%,,,&1| 00000900 30 30 2c 30 0d 03 b6 05 e1 0d 03 c0 04 0d 03 ca |00,0............| 00000910 1f dc 20 35 20 3a 52 45 4d 20 4e 75 6d 62 65 72 |.. 5 :REM Number| 00000920 20 6f 66 20 65 6c 65 6d 65 6e 74 73 0d 03 d4 04 | of elements....| 00000930 0d 03 de 2a f4 20 20 78 31 2c 79 31 2c 78 32 2c |...*. x1,y1,x2,| 00000940 79 32 2c 6d 69 72 72 6f 72 2c 63 6f 6c 6f 75 72 |y2,mirror,colour| 00000950 2c 66 65 72 74 69 6c 69 74 79 0d 03 e8 29 dc 20 |,fertility...). | 00000960 20 30 2c 20 38 2c 20 36 2c 20 38 2c 20 20 20 20 | 0, 8, 6, 8, | 00000970 20 31 2c 20 20 20 20 20 36 2c 20 20 20 20 20 20 | 1, 6, | 00000980 20 20 30 0d 03 f2 29 dc 20 20 36 2c 20 38 2c 31 | 0...). 6, 8,1| 00000990 36 2c 20 33 2c 20 20 20 20 2d 31 2c 20 20 20 20 |6, 3, -1, | 000009a0 31 32 2c 20 20 20 20 20 20 20 20 31 0d 03 fc 29 |12, 1...)| 000009b0 dc 20 20 36 2c 20 38 2c 31 33 2c 31 32 2c 20 20 |. 6, 8,13,12, | 000009c0 20 20 2d 31 2c 20 20 20 20 20 34 2c 20 20 20 20 | -1, 4, | 000009d0 20 20 20 20 31 0d 04 06 29 dc 20 20 33 2c 20 38 | 1...). 3, 8| 000009e0 2c 20 34 2c 31 30 2c 20 20 20 20 20 31 2c 20 20 |, 4,10, 1, | 000009f0 20 20 31 32 2c 20 20 20 20 20 20 20 20 31 0d 04 | 12, 1..| 00000a00 10 29 dc 20 20 33 2c 20 38 2c 20 35 2c 20 35 2c |.). 3, 8, 5, 5,| 00000a10 20 20 20 20 2d 31 2c 20 20 20 20 20 34 2c 20 20 | -1, 4, | 00000a20 20 20 20 20 20 20 31 0d ff | 1..| 00000a29