Home » Archimedes archive » Acorn User » AU 1996-03 B.adf » Regulars » StarInfo/Cohn/!ARMovie/Tools/Rotate/180
StarInfo/Cohn/!ARMovie/Tools/Rotate/180
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/180 |
Read OK: | ✔ |
File size: | 0411 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM 180POINT( Rotation Shape for ARMovie 20REM Acts on 192CHAIN144 size ERLlms. (4:3 ratio ERLlms). 30ONERROR CLOSE#A%:END 40A%=OPENOUT"<ARMovie$Dir>.Shapes.Rotations.180�":REM Create and open Shape file called 180POINT(. 50BPUT#A%,"ARMovie Shape 1":REM Shape type version. 60BPUT#A%,"180� Rotation for 192�144 (or smaller) �lms":REM Comment line. 70BPUT#A%,"768 576":REM Rectangular size of shape in OS units. 80FORY%=0TO143 90destx%=0 100desty%=(143-Y%)*4:REM Top of new shape (destx/y are measured from top left of new shape). 110q%=destx% OR desty%<<12 OR 192<<24 120BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24 130FORI%=191TO0STEP-1 140y%=(143-Y%):REM Take pixels from bottom of ERLlm. (Row 0=Top of ERLlm). 150x%=I%:REM All the pixels in a row from right to left 160q%=y%<<16 OR x%:REM This line calculates the source position of each pixel; they are then placed in a linear line to the right of destx%,desty%. Thus my source pixels are chosen from right to left and bottom to top. 170BPUT#A%,q%:BPUT#A%,q%>>8:BPUT#A%,q%>>16:BPUT#A%,q%>>24:REM Writes source pixels to be used. 180NEXT 190PRINT"Line N� ";Y%;" done":NEXT 200CLOSE#A%
%� 180� Rotation Shape for ARMovie 2� Acts on 192�144 size �lms. (4:3 ratio �lms). � �#A%:� (WA%=�"<ARMovie$Dir>.Shapes.Rotations.180�":� Create and open Shape file called 180�. 20�#A%,"ARMovie Shape 1":� Shape type version. <F�#A%,"180� Rotation for 192�144 (or smaller) �lms":� Comment line. F;�#A%,"768 576":� Rectangular size of shape in OS units. P �Y%=0�143 Zdestx%=0 d[desty%=(143-Y%)*4:� Top of new shape (destx/y are measured from top left of new shape). n$q%=destx% � desty%<<12 � 192<<24 x.�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24 ��I%=191�0�-1 �Ey%=(143-Y%):� Take pixels from bottom of �lm. (Row 0=Top of �lm). �6x%=I%:� All the pixels in a row from right to left ��q%=y%<<16 � x%:� This line calculates the source position of each pixel; they are then placed in a linear line to the right of destx%,desty%. Thus my source pixels are chosen from right to left and bottom to top. �Q�#A%,q%:�#A%,q%>>8:�#A%,q%>>16:�#A%,q%>>24:� Writes source pixels to be used. �� ��"Line N� ";Y%;" done":� ��#A% �
00000000 0d 00 0a 25 f4 20 31 38 30 b0 20 52 6f 74 61 74 |...%. 180. Rotat| 00000010 69 6f 6e 20 53 68 61 70 65 20 66 6f 72 20 41 52 |ion Shape for AR| 00000020 4d 6f 76 69 65 0d 00 14 32 f4 20 41 63 74 73 20 |Movie...2. Acts | 00000030 6f 6e 20 31 39 32 d7 31 34 34 20 73 69 7a 65 20 |on 192.144 size | 00000040 9e 6c 6d 73 2e 20 28 34 3a 33 20 72 61 74 69 6f |.lms. (4:3 ratio| 00000050 20 9e 6c 6d 73 29 2e 0d 00 1e 0d ee 85 20 d9 23 | .lms)....... .#| 00000060 41 25 3a e0 0d 00 28 57 41 25 3d ae 22 3c 41 52 |A%:...(WA%=."<AR| 00000070 4d 6f 76 69 65 24 44 69 72 3e 2e 53 68 61 70 65 |Movie$Dir>.Shape| 00000080 73 2e 52 6f 74 61 74 69 6f 6e 73 2e 31 38 30 b0 |s.Rotations.180.| 00000090 22 3a f4 20 43 72 65 61 74 65 20 61 6e 64 20 6f |":. Create and o| 000000a0 70 65 6e 20 53 68 61 70 65 20 66 69 6c 65 20 63 |pen Shape file c| 000000b0 61 6c 6c 65 64 20 31 38 30 b0 2e 0d 00 32 30 d5 |alled 180....20.| 000000c0 23 41 25 2c 22 41 52 4d 6f 76 69 65 20 53 68 61 |#A%,"ARMovie Sha| 000000d0 70 65 20 31 22 3a f4 20 53 68 61 70 65 20 74 79 |pe 1":. Shape ty| 000000e0 70 65 20 76 65 72 73 69 6f 6e 2e 0d 00 3c 46 d5 |pe version...<F.| 000000f0 23 41 25 2c 22 31 38 30 b0 20 52 6f 74 61 74 69 |#A%,"180. Rotati| 00000100 6f 6e 20 66 6f 72 20 31 39 32 d7 31 34 34 20 28 |on for 192.144 (| 00000110 6f 72 20 73 6d 61 6c 6c 65 72 29 20 9e 6c 6d 73 |or smaller) .lms| 00000120 22 3a f4 20 43 6f 6d 6d 65 6e 74 20 6c 69 6e 65 |":. Comment line| 00000130 2e 0d 00 46 3b d5 23 41 25 2c 22 37 36 38 20 35 |...F;.#A%,"768 5| 00000140 37 36 22 3a f4 20 52 65 63 74 61 6e 67 75 6c 61 |76":. Rectangula| 00000150 72 20 73 69 7a 65 20 6f 66 20 73 68 61 70 65 20 |r size of shape | 00000160 69 6e 20 4f 53 20 75 6e 69 74 73 2e 0d 00 50 0d |in OS units...P.| 00000170 e3 59 25 3d 30 b8 31 34 33 0d 00 5a 0c 64 65 73 |.Y%=0.143..Z.des| 00000180 74 78 25 3d 30 0d 00 64 5b 64 65 73 74 79 25 3d |tx%=0..d[desty%=| 00000190 28 31 34 33 2d 59 25 29 2a 34 3a f4 20 54 6f 70 |(143-Y%)*4:. Top| 000001a0 20 6f 66 20 6e 65 77 20 73 68 61 70 65 20 28 64 | of new shape (d| 000001b0 65 73 74 78 2f 79 20 61 72 65 20 6d 65 61 73 75 |estx/y are measu| 000001c0 72 65 64 20 66 72 6f 6d 20 74 6f 70 20 6c 65 66 |red from top lef| 000001d0 74 20 6f 66 20 6e 65 77 20 73 68 61 70 65 29 2e |t of new shape).| 000001e0 0d 00 6e 24 71 25 3d 64 65 73 74 78 25 20 84 20 |..n$q%=destx% . | 000001f0 64 65 73 74 79 25 3c 3c 31 32 20 84 20 31 39 32 |desty%<<12 . 192| 00000200 3c 3c 32 34 0d 00 78 2e d5 23 41 25 2c 71 25 3a |<<24..x..#A%,q%:| 00000210 d5 23 41 25 2c 71 25 3e 3e 38 3a d5 23 41 25 2c |.#A%,q%>>8:.#A%,| 00000220 71 25 3e 3e 31 36 3a d5 23 41 25 2c 71 25 3e 3e |q%>>16:.#A%,q%>>| 00000230 32 34 0d 00 82 10 e3 49 25 3d 31 39 31 b8 30 88 |24.....I%=191.0.| 00000240 2d 31 0d 00 8c 45 79 25 3d 28 31 34 33 2d 59 25 |-1...Ey%=(143-Y%| 00000250 29 3a f4 20 54 61 6b 65 20 70 69 78 65 6c 73 20 |):. Take pixels | 00000260 66 72 6f 6d 20 62 6f 74 74 6f 6d 20 6f 66 20 9e |from bottom of .| 00000270 6c 6d 2e 20 28 52 6f 77 20 30 3d 54 6f 70 20 6f |lm. (Row 0=Top o| 00000280 66 20 9e 6c 6d 29 2e 0d 00 96 36 78 25 3d 49 25 |f .lm)....6x%=I%| 00000290 3a f4 20 41 6c 6c 20 74 68 65 20 70 69 78 65 6c |:. All the pixel| 000002a0 73 20 69 6e 20 61 20 72 6f 77 20 66 72 6f 6d 20 |s in a row from | 000002b0 72 69 67 68 74 20 74 6f 20 6c 65 66 74 0d 00 a0 |right to left...| 000002c0 d8 71 25 3d 79 25 3c 3c 31 36 20 84 20 78 25 3a |.q%=y%<<16 . x%:| 000002d0 f4 20 54 68 69 73 20 6c 69 6e 65 20 63 61 6c 63 |. This line calc| 000002e0 75 6c 61 74 65 73 20 74 68 65 20 73 6f 75 72 63 |ulates the sourc| 000002f0 65 20 70 6f 73 69 74 69 6f 6e 20 6f 66 20 65 61 |e position of ea| 00000300 63 68 20 70 69 78 65 6c 3b 20 74 68 65 79 20 61 |ch pixel; they a| 00000310 72 65 20 74 68 65 6e 20 70 6c 61 63 65 64 20 69 |re then placed i| 00000320 6e 20 61 20 6c 69 6e 65 61 72 20 6c 69 6e 65 20 |n a linear line | 00000330 74 6f 20 74 68 65 20 72 69 67 68 74 20 6f 66 20 |to the right of | 00000340 64 65 73 74 78 25 2c 64 65 73 74 79 25 2e 20 54 |destx%,desty%. T| 00000350 68 75 73 20 6d 79 20 73 6f 75 72 63 65 20 70 69 |hus my source pi| 00000360 78 65 6c 73 20 61 72 65 20 63 68 6f 73 65 6e 20 |xels are chosen | 00000370 66 72 6f 6d 20 72 69 67 68 74 20 74 6f 20 6c 65 |from right to le| 00000380 66 74 20 61 6e 64 20 62 6f 74 74 6f 6d 20 74 6f |ft and bottom to| 00000390 20 74 6f 70 2e 0d 00 aa 51 d5 23 41 25 2c 71 25 | top....Q.#A%,q%| 000003a0 3a d5 23 41 25 2c 71 25 3e 3e 38 3a d5 23 41 25 |:.#A%,q%>>8:.#A%| 000003b0 2c 71 25 3e 3e 31 36 3a d5 23 41 25 2c 71 25 3e |,q%>>16:.#A%,q%>| 000003c0 3e 32 34 3a f4 20 57 72 69 74 65 73 20 73 6f 75 |>24:. Writes sou| 000003d0 72 63 65 20 70 69 78 65 6c 73 20 74 6f 20 62 65 |rce pixels to be| 000003e0 20 75 73 65 64 2e 0d 00 b4 05 ed 0d 00 be 1c f1 | used...........| 000003f0 22 4c 69 6e 65 20 4e ba 20 22 3b 59 25 3b 22 20 |"Line N. ";Y%;" | 00000400 64 6f 6e 65 22 3a ed 0d 00 c8 08 d9 23 41 25 0d |done":......#A%.| 00000410 ff |.| 00000411