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

!AWFeb94/Goodies/Basic/Circles/Spiral2

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/Spiral2
Read OK:
File size: 01A9 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(400,0,400)
    6PROCCreateTransform
    7PROCDrawObjects
    8END
    9
   10DEF PROCCreateTransform
   11 PROCPath_CreateTransform(rotmag%)
   12 PROCPath_Rotation(rotmag%,PI/16)
   13 PROCPath_Magnify(rotmag%,.95)
   14ENDPROC
   15
   16DEF PROCDrawObjects
   17 REPEAT
   18  SYS "Draw_Stroke",circle%,,,256
   19  PROCPath_Transform(circle%,rotmag%)
   20 UNTIL FALSE
   21ENDPROC
   22
   23
� �
ț "PathLib:OS_units.Paths"
$ț "PathLib:OS_units.Transforms"
ȑ 640,512
)circle%=�Path_CreateCircle(400,0,400)
�CreateTransform
�DrawObjects
�
	

� �CreateTransform
# �Path_CreateTransform(rotmag%)
! �Path_Rotation(rotmag%,�/16)

 �Path_Magnify(rotmag%,.95)
�

� �DrawObjects
 �
$  ș "Draw_Stroke",circle%,,,256
&  �Path_Transform(circle%,rotmag%)
 � �
�


�
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 34  30 30 2c 30 2c 34 30 30  |Circle(400,0,400|
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 23  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 25 29 0d  00 0c 21 20 f2 50 61 74  |otmag%)...! .Pat|
000000f0  68 5f 52 6f 74 61 74 69  6f 6e 28 72 6f 74 6d 61  |h_Rotation(rotma|
00000100  67 25 2c af 2f 31 36 29  0d 00 0d 1f 20 f2 50 61  |g%,./16).... .Pa|
00000110  74 68 5f 4d 61 67 6e 69  66 79 28 72 6f 74 6d 61  |th_Magnify(rotma|
00000120  67 25 2c 2e 39 35 29 0d  00 0e 05 e1 0d 00 0f 04  |g%,.95).........|
00000130  0d 00 10 12 dd 20 f2 44  72 61 77 4f 62 6a 65 63  |..... .DrawObjec|
00000140  74 73 0d 00 11 06 20 f5  0d 00 12 24 20 20 c8 99  |ts.... ....$  ..|
00000150  20 22 44 72 61 77 5f 53  74 72 6f 6b 65 22 2c 63  | "Draw_Stroke",c|
00000160  69 72 63 6c 65 25 2c 2c  2c 32 35 36 0d 00 13 26  |ircle%,,,256...&|
00000170  20 20 f2 50 61 74 68 5f  54 72 61 6e 73 66 6f 72  |  .Path_Transfor|
00000180  6d 28 63 69 72 63 6c 65  25 2c 72 6f 74 6d 61 67  |m(circle%,rotmag|
00000190  25 29 0d 00 14 08 20 fd  20 a3 0d 00 15 05 e1 0d  |%).... . .......|
000001a0  00 16 04 0d 00 17 04 0d  ff                       |.........|
000001a9