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

!AWFeb94/Goodies/Basic/Flatness/Flatness2

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/Flatness/Flatness2
Read OK:
File size: 0247 bytes
Load address: 0000
Exec address: 0000
File contents
    1PROCList
    2LIBRARY "PathLib:OS_units.Paths"
    3ORIGIN 400,400
    4PROCCreate_Curve
    5flatness=256*256
    6REPEAT
    7 PRINT TAB(0,0);"                    "
    8 PRINT TAB(0,0);"Flatness=";flatness
    9 SYS "Draw_Stroke",cubic%,,,flatness
   10 flatness=flatness/2
   11 x$=GET$
   12UNTIL FALSE
   13END
   14
   15DEF PROCCreate_Curve
   16PROCPath_ObjectBegin(cubic%,200)
   17  PROCPath_Move(0,0)
   18  PROCPath_Cubic(0,400,800,400,800,0)
   19PROCPath_ObjectEnd
   20ENDPROC
   21
   22DEF PROCList
   23MODE 12
   24PRINT ''"In MODE 12,  256 draw module units1  = 1  OSunit  = 1/2 pixel"
   25PRINT '"Best value of flatness=256 (for user units=draw units)"
   26PRINT '"Press space bar"
   27x$=GET$
   28ENDPROC
	�List
ț "PathLib:OS_units.Paths"
ȑ 400,400
�Create_Curve
flatness=256*256
�
# � �0,0);"                    "
! � �0,0);"Flatness=";flatness
	' ș "Draw_Stroke",cubic%,,,flatness

 flatness=flatness/2
	 x$=�
� �

�

� �Create_Curve
!�Path_ObjectBegin(cubic%,200)
  �Path_Move(0,0)
&  �Path_Cubic(0,400,800,400,800,0)
�Path_ObjectEnd
�

� �List
� 12
G� ''"In MODE 12,  256 draw module units1  = 1  OSunit  = 1/2 pixel"
?� '"Best value of flatness=256 (for user units=draw units)"
� '"Press space bar"
x$=�
�
�
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 0e c8 91 20 34  |s.Paths"...... 4|
00000030  30 30 2c 34 30 30 0d 00  04 11 f2 43 72 65 61 74  |00,400.....Creat|
00000040  65 5f 43 75 72 76 65 0d  00 05 14 66 6c 61 74 6e  |e_Curve....flatn|
00000050  65 73 73 3d 32 35 36 2a  32 35 36 0d 00 06 05 f5  |ess=256*256.....|
00000060  0d 00 07 23 20 f1 20 8a  30 2c 30 29 3b 22 20 20  |...# . .0,0);"  |
00000070  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000080  20 20 22 0d 00 08 21 20  f1 20 8a 30 2c 30 29 3b  |  "...! . .0,0);|
00000090  22 46 6c 61 74 6e 65 73  73 3d 22 3b 66 6c 61 74  |"Flatness=";flat|
000000a0  6e 65 73 73 0d 00 09 27  20 c8 99 20 22 44 72 61  |ness...' .. "Dra|
000000b0  77 5f 53 74 72 6f 6b 65  22 2c 63 75 62 69 63 25  |w_Stroke",cubic%|
000000c0  2c 2c 2c 66 6c 61 74 6e  65 73 73 0d 00 0a 18 20  |,,,flatness.... |
000000d0  66 6c 61 74 6e 65 73 73  3d 66 6c 61 74 6e 65 73  |flatness=flatnes|
000000e0  73 2f 32 0d 00 0b 09 20  78 24 3d be 0d 00 0c 07  |s/2.... x$=.....|
000000f0  fd 20 a3 0d 00 0d 05 e0  0d 00 0e 04 0d 00 0f 13  |. ..............|
00000100  dd 20 f2 43 72 65 61 74  65 5f 43 75 72 76 65 0d  |. .Create_Curve.|
00000110  00 10 21 f2 50 61 74 68  5f 4f 62 6a 65 63 74 42  |..!.Path_ObjectB|
00000120  65 67 69 6e 28 63 75 62  69 63 25 2c 32 30 30 29  |egin(cubic%,200)|
00000130  0d 00 11 15 20 20 f2 50  61 74 68 5f 4d 6f 76 65  |....  .Path_Move|
00000140  28 30 2c 30 29 0d 00 12  26 20 20 f2 50 61 74 68  |(0,0)...&  .Path|
00000150  5f 43 75 62 69 63 28 30  2c 34 30 30 2c 38 30 30  |_Cubic(0,400,800|
00000160  2c 34 30 30 2c 38 30 30  2c 30 29 0d 00 13 13 f2  |,400,800,0).....|
00000170  50 61 74 68 5f 4f 62 6a  65 63 74 45 6e 64 0d 00  |Path_ObjectEnd..|
00000180  14 05 e1 0d 00 15 04 0d  00 16 0b dd 20 f2 4c 69  |............ .Li|
00000190  73 74 0d 00 17 08 eb 20  31 32 0d 00 18 47 f1 20  |st..... 12...G. |
000001a0  27 27 22 49 6e 20 4d 4f  44 45 20 31 32 2c 20 20  |''"In MODE 12,  |
000001b0  32 35 36 20 64 72 61 77  20 6d 6f 64 75 6c 65 20  |256 draw module |
000001c0  75 6e 69 74 73 31 20 20  3d 20 31 20 20 4f 53 75  |units1  = 1  OSu|
000001d0  6e 69 74 20 20 3d 20 31  2f 32 20 70 69 78 65 6c  |nit  = 1/2 pixel|
000001e0  22 0d 00 19 3f f1 20 27  22 42 65 73 74 20 76 61  |"...?. '"Best va|
000001f0  6c 75 65 20 6f 66 20 66  6c 61 74 6e 65 73 73 3d  |lue of flatness=|
00000200  32 35 36 20 28 66 6f 72  20 75 73 65 72 20 75 6e  |256 (for user un|
00000210  69 74 73 3d 64 72 61 77  20 75 6e 69 74 73 29 22  |its=draw units)"|
00000220  0d 00 1a 18 f1 20 27 22  50 72 65 73 73 20 73 70  |..... '"Press sp|
00000230  61 63 65 20 62 61 72 22  0d 00 1b 08 78 24 3d be  |ace bar"....x$=.|
00000240  0d 00 1c 05 e1 0d ff                              |.......|
00000247