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

!AWFeb94/Goodies/Basic/Cubic/Translate

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/Cubic/Translate
Read OK:
File size: 022B bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2MODE MODE
    3LIBRARY "PathLib:OS_units.Paths"
    4LIBRARY "PathLib:OS_units.Transforms"
    5PROCCreate_Curve
    6PROCCreateTransform
    7PROCDrawObjects
    8END
    9
   10DEF PROCCreateTransform
   11 PROCPath_CreateTransform(translate%)
   12 PROCPath_Translation(translate%,20,20)
   13ENDPROC
   14
   15DEF PROCDrawObjects  
   16 REPEAT
   17   SYS "Draw_Stroke",cubic%
   18   PROCPath_Transform(cubic%,translate%)
   19   PRINT TAB(0,3);"Press space bar"
   20   x$=GET$
   21  UNTIL FALSE      
   22ENDPROC
   23
   24DEF PROCCreate_Curve
   25PROCPath_ObjectBegin(cubic%,200)
   26  PROCPath_Move(0,0)
   27  PROCPath_Cubic(0,200,400,-200,400,0)
   28PROCPath_ObjectEnd
   29ENDPROC
   30

� �
ț "PathLib:OS_units.Paths"
$ț "PathLib:OS_units.Transforms"
�Create_Curve
�CreateTransform
�DrawObjects
�
	

� �CreateTransform
& �Path_CreateTransform(translate%)
( �Path_Translation(translate%,20,20)

�

� �DrawObjects  
 �
   ș "Draw_Stroke",cubic%
)   �Path_Transform(cubic%,translate%)
    � �0,3);"Press space bar"
   x$=�
  � �      
�

� �Create_Curve
!�Path_ObjectBegin(cubic%,200)
  �Path_Move(0,0)
'  �Path_Cubic(0,200,400,-200,400,0)
�Path_ObjectEnd
�

�
00000000  0d 00 01 04 0d 00 02 07  eb 20 eb 0d 00 03 1f c8  |......... ......|
00000010  9b 20 22 50 61 74 68 4c  69 62 3a 4f 53 5f 75 6e  |. "PathLib:OS_un|
00000020  69 74 73 2e 50 61 74 68  73 22 0d 00 04 24 c8 9b  |its.Paths"...$..|
00000030  20 22 50 61 74 68 4c 69  62 3a 4f 53 5f 75 6e 69  | "PathLib:OS_uni|
00000040  74 73 2e 54 72 61 6e 73  66 6f 72 6d 73 22 0d 00  |ts.Transforms"..|
00000050  05 11 f2 43 72 65 61 74  65 5f 43 75 72 76 65 0d  |...Create_Curve.|
00000060  00 06 14 f2 43 72 65 61  74 65 54 72 61 6e 73 66  |....CreateTransf|
00000070  6f 72 6d 0d 00 07 10 f2  44 72 61 77 4f 62 6a 65  |orm.....DrawObje|
00000080  63 74 73 0d 00 08 05 e0  0d 00 09 04 0d 00 0a 16  |cts.............|
00000090  dd 20 f2 43 72 65 61 74  65 54 72 61 6e 73 66 6f  |. .CreateTransfo|
000000a0  72 6d 0d 00 0b 26 20 f2  50 61 74 68 5f 43 72 65  |rm...& .Path_Cre|
000000b0  61 74 65 54 72 61 6e 73  66 6f 72 6d 28 74 72 61  |ateTransform(tra|
000000c0  6e 73 6c 61 74 65 25 29  0d 00 0c 28 20 f2 50 61  |nslate%)...( .Pa|
000000d0  74 68 5f 54 72 61 6e 73  6c 61 74 69 6f 6e 28 74  |th_Translation(t|
000000e0  72 61 6e 73 6c 61 74 65  25 2c 32 30 2c 32 30 29  |ranslate%,20,20)|
000000f0  0d 00 0d 05 e1 0d 00 0e  04 0d 00 0f 14 dd 20 f2  |.............. .|
00000100  44 72 61 77 4f 62 6a 65  63 74 73 20 20 0d 00 10  |DrawObjects  ...|
00000110  06 20 f5 0d 00 11 1e 20  20 20 c8 99 20 22 44 72  |. .....   .. "Dr|
00000120  61 77 5f 53 74 72 6f 6b  65 22 2c 63 75 62 69 63  |aw_Stroke",cubic|
00000130  25 0d 00 12 29 20 20 20  f2 50 61 74 68 5f 54 72  |%...)   .Path_Tr|
00000140  61 6e 73 66 6f 72 6d 28  63 75 62 69 63 25 2c 74  |ansform(cubic%,t|
00000150  72 61 6e 73 6c 61 74 65  25 29 0d 00 13 20 20 20  |ranslate%)...   |
00000160  20 f1 20 8a 30 2c 33 29  3b 22 50 72 65 73 73 20  | . .0,3);"Press |
00000170  73 70 61 63 65 20 62 61  72 22 0d 00 14 0b 20 20  |space bar"....  |
00000180  20 78 24 3d be 0d 00 15  0f 20 20 fd 20 a3 20 20  | x$=.....  . .  |
00000190  20 20 20 20 0d 00 16 05  e1 0d 00 17 04 0d 00 18  |    ............|
000001a0  13 dd 20 f2 43 72 65 61  74 65 5f 43 75 72 76 65  |.. .Create_Curve|
000001b0  0d 00 19 21 f2 50 61 74  68 5f 4f 62 6a 65 63 74  |...!.Path_Object|
000001c0  42 65 67 69 6e 28 63 75  62 69 63 25 2c 32 30 30  |Begin(cubic%,200|
000001d0  29 0d 00 1a 15 20 20 f2  50 61 74 68 5f 4d 6f 76  |)....  .Path_Mov|
000001e0  65 28 30 2c 30 29 0d 00  1b 27 20 20 f2 50 61 74  |e(0,0)...'  .Pat|
000001f0  68 5f 43 75 62 69 63 28  30 2c 32 30 30 2c 34 30  |h_Cubic(0,200,40|
00000200  30 2c 2d 32 30 30 2c 34  30 30 2c 30 29 0d 00 1c  |0,-200,400,0)...|
00000210  13 f2 50 61 74 68 5f 4f  62 6a 65 63 74 45 6e 64  |..Path_ObjectEnd|
00000220  0d 00 1d 05 e1 0d 00 1e  04 0d ff                 |...........|
0000022b