Home » Archimedes archive » Acorn User » AU 1993-09.adf » !Bio_Bio » TtoDInstr
TtoDInstr
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 » Acorn User » AU 1993-09.adf » !Bio_Bio |
Filename: | TtoDInstr |
Read OK: | ✔ |
File size: | 090E bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
This file describes the commands which can be used with the Bio module TtoD. units <mm|inch> Change the units that co-ordinates are specified in. Either millimetres (mm) or inches (inch). font -number <no> -name <name> -size <size> Specify the local font. The number is the internal Draw file font number. The name is the Risc OS font name, such as Trinity.Medium. The size is the point size of the text. If you have defined a font previously in the same file, just put �font -number <number>� to recall the definition. line -start <x,y> -end <x,y> [-width <w>] [-line <&BBGGRR00>] Draw a line. Start and end parameters are in x,y format (e.g. -start 10,10). The width is the line width that will be used. Zero represents the thinnest line the device can produce. The colour is a hex number, the format of which is &BBGGRR00, so colour &2020ff gives a lightish red colour. rectangle -first <x,y> -second <x,y> [-width <w>] [-line <&BBGGRR00>] [-fill <&BBGGRR00>] Draws a rectangle. The co-ordinate pair can be specified any way you like, as long as the two co-ordinates represent opposite corners. Width and colour as above. sprite -first <x,y> -second <x,y> -file �file� -name �name� Reads in a sprite from file �file� and displays sprite called �name� in the file. The first and second co-ordinates specify the bounding boxes. ltext -x <x> -y <y> [-path] -text �text� Displays the text in the text parameter at the specified x,y co-ordinates; the x,y are at the bottom left. The path parameter converts the text to a path (Risc OS 3 only) ctext -first <x,y> -second <x,y> [-path] -text �text� The text centred vertically and horizontally in the box, with optional conversion to a path. (Again, path parameter is Risc OS 3 only). ellipse -centre <x,y> -horz <x> -vert <y> [-line <&BBGGRR00>] [-fill <&BBGGRR00>] Draws an oval (ellipse), centred at the specified co-ordinates, with major and minor diagonals specified by horz and vert. path [-width <w>] [-fill <&BBGGRR00>] [-line <&BBGGRR00>] Starts a path object move -to <x,y> Moves the �cursor� in the path object. draw -to <x,y> Draws a line in the path object. curve -to <x,y> -first <x,y> -second <x,y> Draws a bezier curve to the specified co-ordinates, using first and second as control points. close Close the path. end End the path object.
00000000 54 68 69 73 20 66 69 6c 65 20 64 65 73 63 72 69 |This file descri| 00000010 62 65 73 20 74 68 65 20 63 6f 6d 6d 61 6e 64 73 |bes the commands| 00000020 20 77 68 69 63 68 20 63 61 6e 20 62 65 20 75 73 | which can be us| 00000030 65 64 20 77 69 74 68 20 74 68 65 20 42 69 6f 20 |ed with the Bio | 00000040 6d 6f 64 75 6c 65 0a 54 74 6f 44 2e 0a 0a 75 6e |module.TtoD...un| 00000050 69 74 73 20 3c 6d 6d 7c 69 6e 63 68 3e 0a 43 68 |its <mm|inch>.Ch| 00000060 61 6e 67 65 20 74 68 65 20 75 6e 69 74 73 20 74 |ange the units t| 00000070 68 61 74 20 63 6f 2d 6f 72 64 69 6e 61 74 65 73 |hat co-ordinates| 00000080 20 61 72 65 20 73 70 65 63 69 66 69 65 64 20 69 | are specified i| 00000090 6e 2e 20 45 69 74 68 65 72 0a 6d 69 6c 6c 69 6d |n. Either.millim| 000000a0 65 74 72 65 73 20 28 6d 6d 29 20 6f 72 20 69 6e |etres (mm) or in| 000000b0 63 68 65 73 20 28 69 6e 63 68 29 2e 0a 0a 66 6f |ches (inch)...fo| 000000c0 6e 74 20 2d 6e 75 6d 62 65 72 20 3c 6e 6f 3e 20 |nt -number <no> | 000000d0 2d 6e 61 6d 65 20 3c 6e 61 6d 65 3e 20 2d 73 69 |-name <name> -si| 000000e0 7a 65 20 3c 73 69 7a 65 3e 0a 53 70 65 63 69 66 |ze <size>.Specif| 000000f0 79 20 74 68 65 20 6c 6f 63 61 6c 20 66 6f 6e 74 |y the local font| 00000100 2e 20 54 68 65 20 6e 75 6d 62 65 72 20 69 73 20 |. The number is | 00000110 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 44 72 61 |the internal Dra| 00000120 77 20 66 69 6c 65 20 66 6f 6e 74 0a 6e 75 6d 62 |w file font.numb| 00000130 65 72 2e 20 54 68 65 20 6e 61 6d 65 20 69 73 20 |er. The name is | 00000140 74 68 65 20 52 69 73 63 20 4f 53 20 66 6f 6e 74 |the Risc OS font| 00000150 20 20 6e 61 6d 65 2c 20 73 75 63 68 20 61 73 20 | name, such as | 00000160 54 72 69 6e 69 74 79 2e 4d 65 64 69 75 6d 2e 0a |Trinity.Medium..| 00000170 54 68 65 20 73 69 7a 65 20 69 73 20 74 68 65 20 |The size is the | 00000180 70 6f 69 6e 74 20 73 69 7a 65 20 6f 66 20 74 68 |point size of th| 00000190 65 20 74 65 78 74 2e 20 49 66 20 79 6f 75 20 68 |e text. If you h| 000001a0 61 76 65 20 64 65 66 69 6e 65 64 20 61 20 66 6f |ave defined a fo| 000001b0 6e 74 0a 70 72 65 76 69 6f 75 73 6c 79 20 69 6e |nt.previously in| 000001c0 20 74 68 65 20 73 61 6d 65 20 66 69 6c 65 2c 20 | the same file, | 000001d0 6a 75 73 74 20 70 75 74 20 90 66 6f 6e 74 20 2d |just put .font -| 000001e0 6e 75 6d 62 65 72 20 3c 6e 75 6d 62 65 72 3e 91 |number <number>.| 000001f0 20 20 74 6f 0a 72 65 63 61 6c 6c 20 74 68 65 20 | to.recall the | 00000200 64 65 66 69 6e 69 74 69 6f 6e 2e 0a 0a 6c 69 6e |definition...lin| 00000210 65 20 2d 73 74 61 72 74 20 3c 78 2c 79 3e 20 2d |e -start <x,y> -| 00000220 65 6e 64 20 3c 78 2c 79 3e 20 5b 2d 77 69 64 74 |end <x,y> [-widt| 00000230 68 20 3c 77 3e 5d 20 5b 2d 6c 69 6e 65 20 3c 26 |h <w>] [-line <&| 00000240 42 42 47 47 52 52 30 30 3e 5d 0a 44 72 61 77 20 |BBGGRR00>].Draw | 00000250 61 20 6c 69 6e 65 2e 20 53 74 61 72 74 20 61 6e |a line. Start an| 00000260 64 20 65 6e 64 20 70 61 72 61 6d 65 74 65 72 73 |d end parameters| 00000270 20 61 72 65 20 69 6e 20 78 2c 79 20 66 6f 72 6d | are in x,y form| 00000280 61 74 20 28 65 2e 67 2e 20 2d 73 74 61 72 74 0a |at (e.g. -start.| 00000290 31 30 2c 31 30 29 2e 20 54 68 65 20 77 69 64 74 |10,10). The widt| 000002a0 68 20 69 73 20 20 74 68 65 20 6c 69 6e 65 20 77 |h is the line w| 000002b0 69 64 74 68 20 74 68 61 74 20 77 69 6c 6c 20 62 |idth that will b| 000002c0 65 20 75 73 65 64 2e 20 5a 65 72 6f 0a 72 65 70 |e used. Zero.rep| 000002d0 72 65 73 65 6e 74 73 20 74 68 65 20 74 68 69 6e |resents the thin| 000002e0 6e 65 73 74 20 6c 69 6e 65 20 74 68 65 20 64 65 |nest line the de| 000002f0 76 69 63 65 20 63 61 6e 20 70 72 6f 64 75 63 65 |vice can produce| 00000300 2e 20 54 68 65 20 63 6f 6c 6f 75 72 20 69 73 20 |. The colour is | 00000310 61 0a 68 65 78 20 6e 75 6d 62 65 72 2c 20 74 68 |a.hex number, th| 00000320 65 20 66 6f 72 6d 61 74 20 6f 66 20 77 68 69 63 |e format of whic| 00000330 68 20 69 73 20 26 42 42 47 47 52 52 30 30 2c 20 |h is &BBGGRR00, | 00000340 73 6f 20 63 6f 6c 6f 75 72 20 26 32 30 32 30 66 |so colour &2020f| 00000350 66 20 67 69 76 65 73 0a 61 20 6c 69 67 68 74 69 |f gives.a lighti| 00000360 73 68 20 72 65 64 20 63 6f 6c 6f 75 72 2e 0a 0a |sh red colour...| 00000370 72 65 63 74 61 6e 67 6c 65 20 2d 66 69 72 73 74 |rectangle -first| 00000380 20 3c 78 2c 79 3e 20 2d 73 65 63 6f 6e 64 20 3c | <x,y> -second <| 00000390 78 2c 79 3e 20 5b 2d 77 69 64 74 68 20 3c 77 3e |x,y> [-width <w>| 000003a0 5d 20 5b 2d 6c 69 6e 65 20 3c 26 42 42 47 47 52 |] [-line <&BBGGR| 000003b0 52 30 30 3e 5d 20 5b 2d 66 69 6c 6c 20 3c 26 42 |R00>] [-fill <&B| 000003c0 42 47 47 52 52 30 30 3e 5d 0a 44 72 61 77 73 20 |BGGRR00>].Draws | 000003d0 61 20 72 65 63 74 61 6e 67 6c 65 2e 20 54 68 65 |a rectangle. The| 000003e0 20 63 6f 2d 6f 72 64 69 6e 61 74 65 20 70 61 69 | co-ordinate pai| 000003f0 72 20 63 61 6e 20 62 65 20 73 70 65 63 69 66 69 |r can be specifi| 00000400 65 64 20 61 6e 79 20 77 61 79 20 79 6f 75 0a 6c |ed any way you.l| 00000410 69 6b 65 2c 20 61 73 20 6c 6f 6e 67 20 61 73 20 |ike, as long as | 00000420 74 68 65 20 74 77 6f 20 63 6f 2d 6f 72 64 69 6e |the two co-ordin| 00000430 61 74 65 73 20 72 65 70 72 65 73 65 6e 74 20 6f |ates represent o| 00000440 70 70 6f 73 69 74 65 20 63 6f 72 6e 65 72 73 2e |pposite corners.| 00000450 0a 57 69 64 74 68 20 61 6e 64 20 63 6f 6c 6f 75 |.Width and colou| 00000460 72 20 61 73 20 61 62 6f 76 65 2e 0a 0a 73 70 72 |r as above...spr| 00000470 69 74 65 20 2d 66 69 72 73 74 20 3c 78 2c 79 3e |ite -first <x,y>| 00000480 20 2d 73 65 63 6f 6e 64 20 3c 78 2c 79 3e 20 2d | -second <x,y> -| 00000490 66 69 6c 65 20 94 66 69 6c 65 95 20 2d 6e 61 6d |file .file. -nam| 000004a0 65 20 94 6e 61 6d 65 95 0a 52 65 61 64 73 20 69 |e .name..Reads i| 000004b0 6e 20 61 20 73 70 72 69 74 65 20 66 72 6f 6d 20 |n a sprite from | 000004c0 66 69 6c 65 20 94 66 69 6c 65 95 20 61 6e 64 20 |file .file. and | 000004d0 64 69 73 70 6c 61 79 73 20 73 70 72 69 74 65 20 |displays sprite | 000004e0 63 61 6c 6c 65 64 20 94 6e 61 6d 65 95 0a 69 6e |called .name..in| 000004f0 20 74 68 65 20 66 69 6c 65 2e 20 54 68 65 20 66 | the file. The f| 00000500 69 72 73 74 20 61 6e 64 20 73 65 63 6f 6e 64 20 |irst and second | 00000510 63 6f 2d 6f 72 64 69 6e 61 74 65 73 20 73 70 65 |co-ordinates spe| 00000520 63 69 66 79 20 74 68 65 20 62 6f 75 6e 64 69 6e |cify the boundin| 00000530 67 0a 62 6f 78 65 73 2e 0a 0a 6c 74 65 78 74 20 |g.boxes...ltext | 00000540 2d 78 20 3c 78 3e 20 2d 79 20 3c 79 3e 20 5b 2d |-x <x> -y <y> [-| 00000550 70 61 74 68 5d 20 2d 74 65 78 74 20 94 74 65 78 |path] -text .tex| 00000560 74 95 0a 44 69 73 70 6c 61 79 73 20 74 68 65 20 |t..Displays the | 00000570 74 65 78 74 20 69 6e 20 74 68 65 20 74 65 78 74 |text in the text| 00000580 20 70 61 72 61 6d 65 74 65 72 20 61 74 20 74 68 | parameter at th| 00000590 65 20 73 70 65 63 69 66 69 65 64 20 78 2c 79 0a |e specified x,y.| 000005a0 63 6f 2d 6f 72 64 69 6e 61 74 65 73 3b 20 74 68 |co-ordinates; th| 000005b0 65 20 78 2c 79 20 61 72 65 20 61 74 20 74 68 65 |e x,y are at the| 000005c0 20 62 6f 74 74 6f 6d 20 6c 65 66 74 2e 20 54 68 | bottom left. Th| 000005d0 65 20 70 61 74 68 20 70 61 72 61 6d 65 74 65 72 |e path parameter| 000005e0 0a 63 6f 6e 76 65 72 74 73 20 74 68 65 20 74 65 |.converts the te| 000005f0 78 74 20 74 6f 20 61 20 70 61 74 68 20 28 52 69 |xt to a path (Ri| 00000600 73 63 20 4f 53 20 33 20 6f 6e 6c 79 29 0a 0a 63 |sc OS 3 only)..c| 00000610 74 65 78 74 20 2d 66 69 72 73 74 20 3c 78 2c 79 |text -first <x,y| 00000620 3e 20 2d 73 65 63 6f 6e 64 20 3c 78 2c 79 3e 20 |> -second <x,y> | 00000630 5b 2d 70 61 74 68 5d 20 2d 74 65 78 74 20 94 74 |[-path] -text .t| 00000640 65 78 74 95 0a 54 68 65 20 74 65 78 74 20 63 65 |ext..The text ce| 00000650 6e 74 72 65 64 20 76 65 72 74 69 63 61 6c 6c 79 |ntred vertically| 00000660 20 61 6e 64 20 68 6f 72 69 7a 6f 6e 74 61 6c 6c | and horizontall| 00000670 79 20 69 6e 20 74 68 65 20 62 6f 78 2c 20 77 69 |y in the box, wi| 00000680 74 68 20 6f 70 74 69 6f 6e 61 6c 0a 63 6f 6e 76 |th optional.conv| 00000690 65 72 73 69 6f 6e 20 74 6f 20 61 20 70 61 74 68 |ersion to a path| 000006a0 2e 20 28 41 67 61 69 6e 2c 20 70 61 74 68 20 70 |. (Again, path p| 000006b0 61 72 61 6d 65 74 65 72 20 69 73 20 52 69 73 63 |arameter is Risc| 000006c0 20 4f 53 20 33 20 6f 6e 6c 79 29 2e 0a 0a 65 6c | OS 3 only)...el| 000006d0 6c 69 70 73 65 20 2d 63 65 6e 74 72 65 20 3c 78 |lipse -centre <x| 000006e0 2c 79 3e 20 2d 68 6f 72 7a 20 3c 78 3e 20 2d 76 |,y> -horz <x> -v| 000006f0 65 72 74 20 3c 79 3e 20 5b 2d 6c 69 6e 65 20 3c |ert <y> [-line <| 00000700 26 42 42 47 47 52 52 30 30 3e 5d 20 5b 2d 66 69 |&BBGGRR00>] [-fi| 00000710 6c 6c 20 3c 26 42 42 47 47 52 52 30 30 3e 5d 0a |ll <&BBGGRR00>].| 00000720 44 72 61 77 73 20 61 6e 20 6f 76 61 6c 20 28 65 |Draws an oval (e| 00000730 6c 6c 69 70 73 65 29 2c 20 63 65 6e 74 72 65 64 |llipse), centred| 00000740 20 61 74 20 74 68 65 20 73 70 65 63 69 66 69 65 | at the specifie| 00000750 64 20 63 6f 2d 6f 72 64 69 6e 61 74 65 73 2c 20 |d co-ordinates, | 00000760 77 69 74 68 0a 6d 61 6a 6f 72 20 61 6e 64 20 6d |with.major and m| 00000770 69 6e 6f 72 20 64 69 61 67 6f 6e 61 6c 73 20 73 |inor diagonals s| 00000780 70 65 63 69 66 69 65 64 20 62 79 20 68 6f 72 7a |pecified by horz| 00000790 20 61 6e 64 20 76 65 72 74 2e 0a 0a 70 61 74 68 | and vert...path| 000007a0 20 20 5b 2d 77 69 64 74 68 20 3c 77 3e 5d 20 5b | [-width <w>] [| 000007b0 2d 66 69 6c 6c 20 3c 26 42 42 47 47 52 52 30 30 |-fill <&BBGGRR00| 000007c0 3e 5d 20 5b 2d 6c 69 6e 65 20 3c 26 42 42 47 47 |>] [-line <&BBGG| 000007d0 52 52 30 30 3e 5d 0a 53 74 61 72 74 73 20 61 20 |RR00>].Starts a | 000007e0 70 61 74 68 20 6f 62 6a 65 63 74 0a 0a 6d 6f 76 |path object..mov| 000007f0 65 20 2d 74 6f 20 3c 78 2c 79 3e 0a 4d 6f 76 65 |e -to <x,y>.Move| 00000800 73 20 74 68 65 20 90 63 75 72 73 6f 72 91 20 69 |s the .cursor. i| 00000810 6e 20 74 68 65 20 70 61 74 68 20 6f 62 6a 65 63 |n the path objec| 00000820 74 2e 0a 0a 64 72 61 77 20 2d 74 6f 20 3c 78 2c |t...draw -to <x,| 00000830 79 3e 0a 44 72 61 77 73 20 61 20 6c 69 6e 65 20 |y>.Draws a line | 00000840 69 6e 20 74 68 65 20 70 61 74 68 20 6f 62 6a 65 |in the path obje| 00000850 63 74 2e 0a 0a 63 75 72 76 65 20 2d 74 6f 20 3c |ct...curve -to <| 00000860 78 2c 79 3e 20 2d 66 69 72 73 74 20 3c 78 2c 79 |x,y> -first <x,y| 00000870 3e 20 2d 73 65 63 6f 6e 64 20 3c 78 2c 79 3e 0a |> -second <x,y>.| 00000880 44 72 61 77 73 20 61 20 62 65 7a 69 65 72 20 63 |Draws a bezier c| 00000890 75 72 76 65 20 74 6f 20 74 68 65 20 73 70 65 63 |urve to the spec| 000008a0 69 66 69 65 64 20 63 6f 2d 6f 72 64 69 6e 61 74 |ified co-ordinat| 000008b0 65 73 2c 20 75 73 69 6e 67 20 66 69 72 73 74 20 |es, using first | 000008c0 61 6e 64 0a 73 65 63 6f 6e 64 20 61 73 20 63 6f |and.second as co| 000008d0 6e 74 72 6f 6c 20 70 6f 69 6e 74 73 2e 0a 0a 63 |ntrol points...c| 000008e0 6c 6f 73 65 0a 43 6c 6f 73 65 20 74 68 65 20 70 |lose.Close the p| 000008f0 61 74 68 2e 0a 0a 65 6e 64 0a 45 6e 64 20 74 68 |ath...end.End th| 00000900 65 20 70 61 74 68 20 6f 62 6a 65 63 74 2e |e path object.| 0000090e