Home » Archimedes archive » Archimedes World » AW-1994-01.adf » AWJan94 » !AWJan94/Goodies/Disc/Example_1/Triangle
!AWJan94/Goodies/Disc/Example_1/Triangle
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/Triangle |
Read OK: | ✔ |
File size: | 01BE bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1PROCList 2LIBRARY "PathLib:OS_units.Paths" 3triangle%=FNPath_CreateTriangle(640,512,400,300,800,900) 4GCOL 3 5SYS "Draw_Fill",triangle% 6END 7 8DEF PROCList 9MODE MODE 10COLOUR 2 11PRINT "EXAMPLE 1: TRIANGLE A(640,512) B(400,300) C(800,900)" : PRINT 12DATA LIBRARY "PathLib:OS_units.Paths" 13DATA "triangle%=FNPath_CreateTriangle(640,512,400,300,800,900)" 14DATA "GCOL 3" 15DATA "SYS ""Draw_Fill"",triangle%" 16DATA "END" 17COLOUR 1 18FOR i%=1 TO 5 : READ x$ : PRINT x$ :NEXT 19COLOUR 7 20ENDPROC
�List ț "PathLib:OS_units.Paths" ;triangle%=�Path_CreateTriangle(640,512,400,300,800,900) � 3 ș "Draw_Fill",triangle% � � �List � � � 2 @� "EXAMPLE 1: TRIANGLE A(640,512) B(400,300) C(800,900)" : � &� LIBRARY "PathLib:OS_units.Paths" @� "triangle%=FNPath_CreateTriangle(640,512,400,300,800,900)" � "GCOL 3" #� "SYS ""Draw_Fill"",triangle%" � "END" � 1 � i%=1 � 5 : � 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 3b 74 72 69 61 |s.Paths"...;tria| 00000030 6e 67 6c 65 25 3d a4 50 61 74 68 5f 43 72 65 61 |ngle%=.Path_Crea| 00000040 74 65 54 72 69 61 6e 67 6c 65 28 36 34 30 2c 35 |teTriangle(640,5| 00000050 31 32 2c 34 30 30 2c 33 30 30 2c 38 30 30 2c 39 |12,400,300,800,9| 00000060 30 30 29 0d 00 04 07 e6 20 33 0d 00 05 1c c8 99 |00)..... 3......| 00000070 20 22 44 72 61 77 5f 46 69 6c 6c 22 2c 74 72 69 | "Draw_Fill",tri| 00000080 61 6e 67 6c 65 25 0d 00 06 05 e0 0d 00 07 04 0d |angle%..........| 00000090 00 08 0b dd 20 f2 4c 69 73 74 0d 00 09 07 eb 20 |.... .List..... | 000000a0 eb 0d 00 0a 07 fb 20 32 0d 00 0b 40 f1 20 22 45 |...... 2...@. "E| 000000b0 58 41 4d 50 4c 45 20 31 3a 20 54 52 49 41 4e 47 |XAMPLE 1: TRIANG| 000000c0 4c 45 20 41 28 36 34 30 2c 35 31 32 29 20 42 28 |LE A(640,512) B(| 000000d0 34 30 30 2c 33 30 30 29 20 43 28 38 30 30 2c 39 |400,300) C(800,9| 000000e0 30 30 29 22 20 3a 20 f1 0d 00 0c 26 dc 20 4c 49 |00)" : ....&. LI| 000000f0 42 52 41 52 59 20 22 50 61 74 68 4c 69 62 3a 4f |BRARY "PathLib:O| 00000100 53 5f 75 6e 69 74 73 2e 50 61 74 68 73 22 0d 00 |S_units.Paths"..| 00000110 0d 40 dc 20 22 74 72 69 61 6e 67 6c 65 25 3d 46 |.@. "triangle%=F| 00000120 4e 50 61 74 68 5f 43 72 65 61 74 65 54 72 69 61 |NPath_CreateTria| 00000130 6e 67 6c 65 28 36 34 30 2c 35 31 32 2c 34 30 30 |ngle(640,512,400| 00000140 2c 33 30 30 2c 38 30 30 2c 39 30 30 29 22 0d 00 |,300,800,900)"..| 00000150 0e 0e dc 20 22 47 43 4f 4c 20 33 22 0d 00 0f 23 |... "GCOL 3"...#| 00000160 dc 20 22 53 59 53 20 22 22 44 72 61 77 5f 46 69 |. "SYS ""Draw_Fi| 00000170 6c 6c 22 22 2c 74 72 69 61 6e 67 6c 65 25 22 0d |ll"",triangle%".| 00000180 00 10 0b dc 20 22 45 4e 44 22 0d 00 11 07 fb 20 |.... "END"..... | 00000190 31 0d 00 12 1f e3 20 69 25 3d 31 20 b8 20 35 20 |1..... i%=1 . 5 | 000001a0 3a 20 f3 20 78 24 20 3a 20 f1 20 78 24 20 3a ed |: . x$ : . x$ :.| 000001b0 0d 00 13 07 fb 20 37 0d 00 14 05 e1 0d ff |..... 7.......| 000001be