Home » Archimedes archive » Archimedes World » AW-1994-01.adf » AWJan94 » !AWJan94/Goodies/Disc/Example_1/Square
!AWJan94/Goodies/Disc/Example_1/Square
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-01.adf » AWJan94 |
Filename: | !AWJan94/Goodies/Disc/Example_1/Square |
Read OK: | ✔ |
File size: | 0189 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1PROCList 2LIBRARY "PathLib:OS_units.Paths" 3square%=FNPath_CreateSquare(640,512,400) 4SYS "Draw_Stroke",square% 5END 6 7DEF PROCList 8MODE MODE 9COLOUR 2 10PRINT "EXAMPLE 1: SQUARE, Centre 640,512 length of side 400" : PRINT 11DATA LIBRARY "PathLib:OS_units.Paths" 12DATA "square%=FNPath_CreateSquare(640,512,400)" 13DATA "SYS ""Draw_Stroke"",square%" 14DATA "END" 15COLOUR 1 16FOR i%=1 TO 4 : READ x$ : PRINT x$ :NEXT 17COLOUR 7 18ENDPROC
�List ț "PathLib:OS_units.Paths" +square%=�Path_CreateSquare(640,512,400) ș "Draw_Stroke",square% � � �List � � � 2 @� "EXAMPLE 1: SQUARE, Centre 640,512 length of side 400" : � &� LIBRARY "PathLib:OS_units.Paths" 0� "square%=FNPath_CreateSquare(640,512,400)" #� "SYS ""Draw_Stroke"",square%" � "END" � 1 � i%=1 � 4 : � x$ : � x$ :� � 7 � �
00000000 0d 00 01 09 f2 4c 69 73 74 0d 00 02 1f c8 9b 20 |.....List...... | 00000010 22 50 61 74 68 4c 69 62 3a 4f 53 5f 75 6e 69 74 |"PathLib:OS_unit| 00000020 73 2e 50 61 74 68 73 22 0d 00 03 2b 73 71 75 61 |s.Paths"...+squa| 00000030 72 65 25 3d a4 50 61 74 68 5f 43 72 65 61 74 65 |re%=.Path_Create| 00000040 53 71 75 61 72 65 28 36 34 30 2c 35 31 32 2c 34 |Square(640,512,4| 00000050 30 30 29 0d 00 04 1c c8 99 20 22 44 72 61 77 5f |00)...... "Draw_| 00000060 53 74 72 6f 6b 65 22 2c 73 71 75 61 72 65 25 0d |Stroke",square%.| 00000070 00 05 05 e0 0d 00 06 04 0d 00 07 0b dd 20 f2 4c |............. .L| 00000080 69 73 74 0d 00 08 07 eb 20 eb 0d 00 09 07 fb 20 |ist..... ...... | 00000090 32 0d 00 0a 40 f1 20 22 45 58 41 4d 50 4c 45 20 |2...@. "EXAMPLE | 000000a0 31 3a 20 53 51 55 41 52 45 2c 20 43 65 6e 74 72 |1: SQUARE, Centr| 000000b0 65 20 36 34 30 2c 35 31 32 20 6c 65 6e 67 74 68 |e 640,512 length| 000000c0 20 6f 66 20 73 69 64 65 20 34 30 30 22 20 3a 20 | of side 400" : | 000000d0 f1 0d 00 0b 26 dc 20 4c 49 42 52 41 52 59 20 22 |....&. LIBRARY "| 000000e0 50 61 74 68 4c 69 62 3a 4f 53 5f 75 6e 69 74 73 |PathLib:OS_units| 000000f0 2e 50 61 74 68 73 22 0d 00 0c 30 dc 20 22 73 71 |.Paths"...0. "sq| 00000100 75 61 72 65 25 3d 46 4e 50 61 74 68 5f 43 72 65 |uare%=FNPath_Cre| 00000110 61 74 65 53 71 75 61 72 65 28 36 34 30 2c 35 31 |ateSquare(640,51| 00000120 32 2c 34 30 30 29 22 0d 00 0d 23 dc 20 22 53 59 |2,400)"...#. "SY| 00000130 53 20 22 22 44 72 61 77 5f 53 74 72 6f 6b 65 22 |S ""Draw_Stroke"| 00000140 22 2c 73 71 75 61 72 65 25 22 0d 00 0e 0b dc 20 |",square%"..... | 00000150 22 45 4e 44 22 0d 00 0f 07 fb 20 31 0d 00 10 1f |"END"..... 1....| 00000160 e3 20 69 25 3d 31 20 b8 20 34 20 3a 20 f3 20 78 |. i%=1 . 4 : . x| 00000170 24 20 3a 20 f1 20 78 24 20 3a ed 0d 00 11 07 fb |$ : . x$ :......| 00000180 20 37 0d 00 12 05 e1 0d ff | 7.......| 00000189