Home » Archimedes archive » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94 » !AWFeb94/Goodies/Basic/Circles/Spiral

!AWFeb94/Goodies/Basic/Circles/Spiral

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 » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94
Filename: !AWFeb94/Goodies/Basic/Circles/Spiral
Read OK:
File size: 01DD bytes
Load address: 0000
Exec address: 0000
File contents
    1MODE MODE
    2LIBRARY "PathLib:OS_units.Paths"
    3LIBRARY "PathLib:OS_units.Transforms"
    4ORIGIN 640,512
    5circle%=FNPath_CreateCircle(300,0,300)
    6PROCCreateTransform
    7PROCDrawObjects
    8END
    9
   10DEF PROCCreateTransform
   11 PROCPath_CreateTransform(rotmagtrans%)
   12 PROCPath_Rotation(rotmagtrans%,PI/16)
   13 PROCPath_Magnify(rotmagtrans%,.95)
   14 PROCPath_Translation(rotmagtrans%,20,20)
   15ENDPROC
   16
   17DEF PROCDrawObjects
   18 REPEAT
   19  SYS "Draw_Stroke",circle%
   20  PROCPath_Transform(circle%,rotmagtrans%)
   21 UNTIL FALSE
   22ENDPROC
   23
� �
ț "PathLib:OS_units.Paths"
$ț "PathLib:OS_units.Transforms"
ȑ 640,512
)circle%=�Path_CreateCircle(300,0,300)
�CreateTransform
�DrawObjects
�
	

� �CreateTransform
( �Path_CreateTransform(rotmagtrans%)
& �Path_Rotation(rotmagtrans%,�/16)

$ �Path_Magnify(rotmagtrans%,.95)
* �Path_Translation(rotmagtrans%,20,20)
�

� �DrawObjects
 �
  ș "Draw_Stroke",circle%
+  �Path_Transform(circle%,rotmagtrans%)
 � �
�

�
00000000  0d 00 01 07 eb 20 eb 0d  00 02 1f c8 9b 20 22 50  |..... ....... "P|
00000010  61 74 68 4c 69 62 3a 4f  53 5f 75 6e 69 74 73 2e  |athLib:OS_units.|
00000020  50 61 74 68 73 22 0d 00  03 24 c8 9b 20 22 50 61  |Paths"...$.. "Pa|
00000030  74 68 4c 69 62 3a 4f 53  5f 75 6e 69 74 73 2e 54  |thLib:OS_units.T|
00000040  72 61 6e 73 66 6f 72 6d  73 22 0d 00 04 0e c8 91  |ransforms"......|
00000050  20 36 34 30 2c 35 31 32  0d 00 05 29 63 69 72 63  | 640,512...)circ|
00000060  6c 65 25 3d a4 50 61 74  68 5f 43 72 65 61 74 65  |le%=.Path_Create|
00000070  43 69 72 63 6c 65 28 33  30 30 2c 30 2c 33 30 30  |Circle(300,0,300|
00000080  29 0d 00 06 14 f2 43 72  65 61 74 65 54 72 61 6e  |).....CreateTran|
00000090  73 66 6f 72 6d 0d 00 07  10 f2 44 72 61 77 4f 62  |sform.....DrawOb|
000000a0  6a 65 63 74 73 0d 00 08  05 e0 0d 00 09 04 0d 00  |jects...........|
000000b0  0a 16 dd 20 f2 43 72 65  61 74 65 54 72 61 6e 73  |... .CreateTrans|
000000c0  66 6f 72 6d 0d 00 0b 28  20 f2 50 61 74 68 5f 43  |form...( .Path_C|
000000d0  72 65 61 74 65 54 72 61  6e 73 66 6f 72 6d 28 72  |reateTransform(r|
000000e0  6f 74 6d 61 67 74 72 61  6e 73 25 29 0d 00 0c 26  |otmagtrans%)...&|
000000f0  20 f2 50 61 74 68 5f 52  6f 74 61 74 69 6f 6e 28  | .Path_Rotation(|
00000100  72 6f 74 6d 61 67 74 72  61 6e 73 25 2c af 2f 31  |rotmagtrans%,./1|
00000110  36 29 0d 00 0d 24 20 f2  50 61 74 68 5f 4d 61 67  |6)...$ .Path_Mag|
00000120  6e 69 66 79 28 72 6f 74  6d 61 67 74 72 61 6e 73  |nify(rotmagtrans|
00000130  25 2c 2e 39 35 29 0d 00  0e 2a 20 f2 50 61 74 68  |%,.95)...* .Path|
00000140  5f 54 72 61 6e 73 6c 61  74 69 6f 6e 28 72 6f 74  |_Translation(rot|
00000150  6d 61 67 74 72 61 6e 73  25 2c 32 30 2c 32 30 29  |magtrans%,20,20)|
00000160  0d 00 0f 05 e1 0d 00 10  04 0d 00 11 12 dd 20 f2  |.............. .|
00000170  44 72 61 77 4f 62 6a 65  63 74 73 0d 00 12 06 20  |DrawObjects.... |
00000180  f5 0d 00 13 1e 20 20 c8  99 20 22 44 72 61 77 5f  |.....  .. "Draw_|
00000190  53 74 72 6f 6b 65 22 2c  63 69 72 63 6c 65 25 0d  |Stroke",circle%.|
000001a0  00 14 2b 20 20 f2 50 61  74 68 5f 54 72 61 6e 73  |..+  .Path_Trans|
000001b0  66 6f 72 6d 28 63 69 72  63 6c 65 25 2c 72 6f 74  |form(circle%,rot|
000001c0  6d 61 67 74 72 61 6e 73  25 29 0d 00 15 08 20 fd  |magtrans%).... .|
000001d0  20 a3 0d 00 16 05 e1 0d  00 17 04 0d ff           | ............|
000001dd