Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Regulars » StarInfo/Cohn/!ARMovie/Tools/Rotate/45
StarInfo/Cohn/!ARMovie/Tools/Rotate/45
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-03 B.adf » Regulars |
Filename: | StarInfo/Cohn/!ARMovie/Tools/Rotate/45 |
Read OK: | ✔ |
File size: | 0610 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM Rotate 45POINT( 20REM Acts on 192CHAIN144 size ERLlms. (4:3 ratio ERLlms). 30REM Temporarily 160CHAIN127 e.g. use with LionFish 40REM Should be *SQR2 not *2! 50ONERROR CLOSE#A%:PRINTREPORT$;" at line ";ERL:END 60PRINT"Opening new file�" 70A%=OPENOUT"<ARMovie$Dir>.Shapes.Rotations.45�" 80BPUT#A%,"ARMovie Shape 1" 90BPUT#A%,"Anticlockwise 45� Rotation" 100BPUT#A%,"1144 1136" 110PROCone 120PROCtwo 130PROCthree 140CLOSE#A% 150PRINT"Operation complete; file closed." 160END 170DEFPROCone 180PRINT"Part One Starting-Up�" 190FORY%=0TO126 200destx%=Y%*4 210desty%=(126-Y%)*4 220N%=(127-Y%)*2 230q%=destx% OR desty%<<12 OR N%<<24 240BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 250FORI%=0TO(126-Y%) 260y%=Y%+I% 270x%=I% 280q%=y%<<16 OR x% 290BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 300BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 310NEXT 320NEXT 330PRINT"Finished Part One" 340ENDPROC 350DEFPROCtwo 360PRINT"Part Two Starting-Up�" 370FORline%=1TO31 380destx%=(32-line%)*4 390desty%=(158-line%)*4 400N%=254 410q%=destx% OR desty%<<12 OR N%<<24 420BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 430FORI%=0TO126 440x%=I%+(32-line%) 450y%=I% 460q%=y%<<16 OR x% 470BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 480BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 490NEXT 500NEXT 510PRINT"Finished Part Two" 520ENDPROC 530DEFPROCthree 540PRINT"Part Three Starting-Up�" 550FORY%=126TO0STEP-1 560destx%=(126-Y%)*4+31*4 570desty%=1132-(Y%*4) 580N%=(Y%+1)*2 590q%=destx% OR desty%<<12 OR N%<<24 600BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 610FORI%=0TOY% 620y%=I% 630x%=I%+32+(126-Y%) 640q%=y%<<16 OR x% 650BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 660BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 670NEXT 680NEXT 690PRINT"Finished Part Three" 700ENDPROC
� Rotate 45� 2� Acts on 192�144 size �lms. (4:3 ratio �lms). 0� Temporarily 160�127 e.g. use with LionFish (� Should be *SQR2 not *2! 2� �#A%:�$;" at line ";�:� <�"Opening new file�" F,A%=�"<ARMovie$Dir>.Shapes.Rotations.45�" P�#A%,"ARMovie Shape 1" Z%�#A%,"Anticlockwise 45� Rotation" d�#A%,"1144 1136" n�one x�two � �three ��#A% �'�"Operation complete; file closed." �� � ��one ��"Part One Starting-Up�" � �Y%=0�126 �destx%=Y%*4 �desty%=(126-Y%)*4 �N%=(127-Y%)*2 �#q%=destx% � desty%<<12 � N%<<24 �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 ��I%=0�(126-Y%) y%=Y%+I% x%=I% q%=y%<<16 � x% ".�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 ,.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 6� @� J�"Finished Part One" T� ^ ��two h�"Part Two Starting-Up�" r�line%=1�31 |destx%=(32-line%)*4 �desty%=(158-line%)*4 � N%=254 �#q%=destx% � desty%<<12 � N%<<24 �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 � �I%=0�126 �x%=I%+(32-line%) � y%=I% �q%=y%<<16 � x% �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 �� �� ��"Finished Part Two" � ��three �"Part Three Starting-Up�" &�Y%=126�0�-1 0destx%=(126-Y%)*4+31*4 :desty%=1132-(Y%*4) DN%=(Y%+1)*2 N#q%=destx% � desty%<<12 � N%<<24 X.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 b�I%=0�Y% l y%=I% vx%=I%+32+(126-Y%) �q%=y%<<16 � x% �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 �.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 �� �� ��"Finished Part Three" �� �
00000000 0d 00 0a 10 f4 20 52 6f 74 61 74 65 20 34 35 b0 |..... Rotate 45.| 00000010 0d 00 14 32 f4 20 41 63 74 73 20 6f 6e 20 31 39 |...2. Acts on 19| 00000020 32 d7 31 34 34 20 73 69 7a 65 20 9e 6c 6d 73 2e |2.144 size .lms.| 00000030 20 28 34 3a 33 20 72 61 74 69 6f 20 9e 6c 6d 73 | (4:3 ratio .lms| 00000040 29 2e 0d 00 1e 30 f4 20 54 65 6d 70 6f 72 61 72 |)....0. Temporar| 00000050 69 6c 79 20 31 36 30 d7 31 32 37 20 65 2e 67 2e |ily 160.127 e.g.| 00000060 20 75 73 65 20 77 69 74 68 20 4c 69 6f 6e 46 69 | use with LionFi| 00000070 73 68 0d 00 28 1d f4 20 53 68 6f 75 6c 64 20 62 |sh..(.. Should b| 00000080 65 20 2a 53 51 52 32 20 6e 6f 74 20 2a 32 21 0d |e *SQR2 not *2!.| 00000090 00 32 1f ee 85 20 d9 23 41 25 3a f1 f6 24 3b 22 |.2... .#A%:..$;"| 000000a0 20 61 74 20 6c 69 6e 65 20 22 3b 9e 3a e0 0d 00 | at line ";.:...| 000000b0 3c 18 f1 22 4f 70 65 6e 69 6e 67 20 6e 65 77 20 |<.."Opening new | 000000c0 66 69 6c 65 8c 22 0d 00 46 2c 41 25 3d ae 22 3c |file."..F,A%=."<| 000000d0 41 52 4d 6f 76 69 65 24 44 69 72 3e 2e 53 68 61 |ARMovie$Dir>.Sha| 000000e0 70 65 73 2e 52 6f 74 61 74 69 6f 6e 73 2e 34 35 |pes.Rotations.45| 000000f0 b0 22 0d 00 50 1a d5 23 41 25 2c 22 41 52 4d 6f |."..P..#A%,"ARMo| 00000100 76 69 65 20 53 68 61 70 65 20 31 22 0d 00 5a 25 |vie Shape 1"..Z%| 00000110 d5 23 41 25 2c 22 41 6e 74 69 63 6c 6f 63 6b 77 |.#A%,"Anticlockw| 00000120 69 73 65 20 34 35 b0 20 52 6f 74 61 74 69 6f 6e |ise 45. Rotation| 00000130 22 0d 00 64 14 d5 23 41 25 2c 22 31 31 34 34 20 |"..d..#A%,"1144 | 00000140 31 31 33 36 22 0d 00 6e 08 f2 6f 6e 65 0d 00 78 |1136"..n..one..x| 00000150 08 f2 74 77 6f 0d 00 82 0a f2 74 68 72 65 65 0d |..two.....three.| 00000160 00 8c 08 d9 23 41 25 0d 00 96 27 f1 22 4f 70 65 |....#A%...'."Ope| 00000170 72 61 74 69 6f 6e 20 63 6f 6d 70 6c 65 74 65 3b |ration complete;| 00000180 20 66 69 6c 65 20 63 6c 6f 73 65 64 2e 22 0d 00 | file closed."..| 00000190 a0 05 e0 0d 00 aa 09 dd f2 6f 6e 65 0d 00 b4 1c |.........one....| 000001a0 f1 22 50 61 72 74 20 4f 6e 65 20 53 74 61 72 74 |."Part One Start| 000001b0 69 6e 67 2d 55 70 8c 22 0d 00 be 0d e3 59 25 3d |ing-Up.".....Y%=| 000001c0 30 b8 31 32 36 0d 00 c8 0f 64 65 73 74 78 25 3d |0.126....destx%=| 000001d0 59 25 2a 34 0d 00 d2 15 64 65 73 74 79 25 3d 28 |Y%*4....desty%=(| 000001e0 31 32 36 2d 59 25 29 2a 34 0d 00 dc 11 4e 25 3d |126-Y%)*4....N%=| 000001f0 28 31 32 37 2d 59 25 29 2a 32 0d 00 e6 23 71 25 |(127-Y%)*2...#q%| 00000200 3d 64 65 73 74 78 25 20 84 20 64 65 73 74 79 25 |=destx% . desty%| 00000210 3c 3c 31 32 20 84 20 4e 25 3c 3c 32 34 0d 00 f0 |<<12 . N%<<24...| 00000220 2e d5 23 41 25 2c 71 25 3a d5 23 41 25 2c 71 25 |..#A%,q%:.#A%,q%| 00000230 3e 3e 38 3a d5 23 41 25 2c 71 25 3e 3e 31 36 3a |>>8:.#A%,q%>>16:| 00000240 d5 23 41 25 2c 71 25 3e 3e 32 34 0d 00 fa 12 e3 |.#A%,q%>>24.....| 00000250 49 25 3d 30 b8 28 31 32 36 2d 59 25 29 0d 01 04 |I%=0.(126-Y%)...| 00000260 0c 79 25 3d 59 25 2b 49 25 0d 01 0e 09 78 25 3d |.y%=Y%+I%....x%=| 00000270 49 25 0d 01 18 12 71 25 3d 79 25 3c 3c 31 36 20 |I%....q%=y%<<16 | 00000280 84 20 78 25 0d 01 22 2e d5 23 41 25 2c 71 25 3a |. x%.."..#A%,q%:| 00000290 d5 23 41 25 2c 71 25 3e 3e 38 3a d5 23 41 25 2c |.#A%,q%>>8:.#A%,| 000002a0 71 25 3e 3e 31 36 3a d5 23 41 25 2c 71 25 3e 3e |q%>>16:.#A%,q%>>| 000002b0 32 34 0d 01 2c 2e d5 23 41 25 2c 71 25 3a d5 23 |24..,..#A%,q%:.#| 000002c0 41 25 2c 71 25 3e 3e 38 3a d5 23 41 25 2c 71 25 |A%,q%>>8:.#A%,q%| 000002d0 3e 3e 31 36 3a d5 23 41 25 2c 71 25 3e 3e 32 34 |>>16:.#A%,q%>>24| 000002e0 0d 01 36 05 ed 0d 01 40 05 ed 0d 01 4a 18 f1 22 |..6....@....J.."| 000002f0 46 69 6e 69 73 68 65 64 20 50 61 72 74 20 4f 6e |Finished Part On| 00000300 65 22 0d 01 54 05 e1 0d 01 5e 09 dd f2 74 77 6f |e"..T....^...two| 00000310 0d 01 68 1c f1 22 50 61 72 74 20 54 77 6f 20 53 |..h.."Part Two S| 00000320 74 61 72 74 69 6e 67 2d 55 70 8c 22 0d 01 72 0f |tarting-Up."..r.| 00000330 e3 6c 69 6e 65 25 3d 31 b8 33 31 0d 01 7c 17 64 |.line%=1.31..|.d| 00000340 65 73 74 78 25 3d 28 33 32 2d 6c 69 6e 65 25 29 |estx%=(32-line%)| 00000350 2a 34 0d 01 86 18 64 65 73 74 79 25 3d 28 31 35 |*4....desty%=(15| 00000360 38 2d 6c 69 6e 65 25 29 2a 34 0d 01 90 0a 4e 25 |8-line%)*4....N%| 00000370 3d 32 35 34 0d 01 9a 23 71 25 3d 64 65 73 74 78 |=254...#q%=destx| 00000380 25 20 84 20 64 65 73 74 79 25 3c 3c 31 32 20 84 |% . desty%<<12 .| 00000390 20 4e 25 3c 3c 32 34 0d 01 a4 2e d5 23 41 25 2c | N%<<24.....#A%,| 000003a0 71 25 3a d5 23 41 25 2c 71 25 3e 3e 38 3a d5 23 |q%:.#A%,q%>>8:.#| 000003b0 41 25 2c 71 25 3e 3e 31 36 3a d5 23 41 25 2c 71 |A%,q%>>16:.#A%,q| 000003c0 25 3e 3e 32 34 0d 01 ae 0d e3 49 25 3d 30 b8 31 |%>>24.....I%=0.1| 000003d0 32 36 0d 01 b8 14 78 25 3d 49 25 2b 28 33 32 2d |26....x%=I%+(32-| 000003e0 6c 69 6e 65 25 29 0d 01 c2 09 79 25 3d 49 25 0d |line%)....y%=I%.| 000003f0 01 cc 12 71 25 3d 79 25 3c 3c 31 36 20 84 20 78 |...q%=y%<<16 . x| 00000400 25 0d 01 d6 2e d5 23 41 25 2c 71 25 3a d5 23 41 |%.....#A%,q%:.#A| 00000410 25 2c 71 25 3e 3e 38 3a d5 23 41 25 2c 71 25 3e |%,q%>>8:.#A%,q%>| 00000420 3e 31 36 3a d5 23 41 25 2c 71 25 3e 3e 32 34 0d |>16:.#A%,q%>>24.| 00000430 01 e0 2e d5 23 41 25 2c 71 25 3a d5 23 41 25 2c |....#A%,q%:.#A%,| 00000440 71 25 3e 3e 38 3a d5 23 41 25 2c 71 25 3e 3e 31 |q%>>8:.#A%,q%>>1| 00000450 36 3a d5 23 41 25 2c 71 25 3e 3e 32 34 0d 01 ea |6:.#A%,q%>>24...| 00000460 05 ed 0d 01 f4 05 ed 0d 01 fe 18 f1 22 46 69 6e |............"Fin| 00000470 69 73 68 65 64 20 50 61 72 74 20 54 77 6f 22 0d |ished Part Two".| 00000480 02 08 05 e1 0d 02 12 0b dd f2 74 68 72 65 65 0d |..........three.| 00000490 02 1c 1e f1 22 50 61 72 74 20 54 68 72 65 65 20 |...."Part Three | 000004a0 53 74 61 72 74 69 6e 67 2d 55 70 8c 22 0d 02 26 |Starting-Up."..&| 000004b0 10 e3 59 25 3d 31 32 36 b8 30 88 2d 31 0d 02 30 |..Y%=126.0.-1..0| 000004c0 1a 64 65 73 74 78 25 3d 28 31 32 36 2d 59 25 29 |.destx%=(126-Y%)| 000004d0 2a 34 2b 33 31 2a 34 0d 02 3a 16 64 65 73 74 79 |*4+31*4..:.desty| 000004e0 25 3d 31 31 33 32 2d 28 59 25 2a 34 29 0d 02 44 |%=1132-(Y%*4)..D| 000004f0 0f 4e 25 3d 28 59 25 2b 31 29 2a 32 0d 02 4e 23 |.N%=(Y%+1)*2..N#| 00000500 71 25 3d 64 65 73 74 78 25 20 84 20 64 65 73 74 |q%=destx% . dest| 00000510 79 25 3c 3c 31 32 20 84 20 4e 25 3c 3c 32 34 0d |y%<<12 . N%<<24.| 00000520 02 58 2e d5 23 41 25 2c 71 25 3a d5 23 41 25 2c |.X..#A%,q%:.#A%,| 00000530 71 25 3e 3e 38 3a d5 23 41 25 2c 71 25 3e 3e 31 |q%>>8:.#A%,q%>>1| 00000540 36 3a d5 23 41 25 2c 71 25 3e 3e 32 34 0d 02 62 |6:.#A%,q%>>24..b| 00000550 0c e3 49 25 3d 30 b8 59 25 0d 02 6c 09 79 25 3d |..I%=0.Y%..l.y%=| 00000560 49 25 0d 02 76 15 78 25 3d 49 25 2b 33 32 2b 28 |I%..v.x%=I%+32+(| 00000570 31 32 36 2d 59 25 29 0d 02 80 12 71 25 3d 79 25 |126-Y%)....q%=y%| 00000580 3c 3c 31 36 20 84 20 78 25 0d 02 8a 2e d5 23 41 |<<16 . x%.....#A| 00000590 25 2c 71 25 3a d5 23 41 25 2c 71 25 3e 3e 38 3a |%,q%:.#A%,q%>>8:| 000005a0 d5 23 41 25 2c 71 25 3e 3e 31 36 3a d5 23 41 25 |.#A%,q%>>16:.#A%| 000005b0 2c 71 25 3e 3e 32 34 0d 02 94 2e d5 23 41 25 2c |,q%>>24.....#A%,| 000005c0 71 25 3a d5 23 41 25 2c 71 25 3e 3e 38 3a d5 23 |q%:.#A%,q%>>8:.#| 000005d0 41 25 2c 71 25 3e 3e 31 36 3a d5 23 41 25 2c 71 |A%,q%>>16:.#A%,q| 000005e0 25 3e 3e 32 34 0d 02 9e 05 ed 0d 02 a8 05 ed 0d |%>>24...........| 000005f0 02 b2 1a f1 22 46 69 6e 69 73 68 65 64 20 50 61 |...."Finished Pa| 00000600 72 74 20 54 68 72 65 65 22 0d 02 bc 05 e1 0d ff |rt Three".......| 00000610