[Coco] Obscure DRAW feature from ECB Unravelled
tim lindner
tlindner at macmess.org
Sat Jan 5 13:23:14 EST 2008
I found this in the unravelled book:
******************
There is a certain syntax that must be followed, which to my knowledge
has not yet been published anywhere until now. Following is a short
example of how to do this.
10 A=10:B=13
20 DRAW "BM=A;,A;;U=B;R=B;D=B;L=B"
The above program will draw a box that has sides equal to the variable
'B', as the program stands, line 20 is equivalent to the following:
20 DRAW "BM10,10;U13R13D13L13"
*************************
But there are two typos in the DRAW command. It should look like this:
20 DRAW "BM=A;,=A;U=B;R=B;D=B;L=B;"
The vairable name has to begin with and equal and end with a semicolon.
Neat.
--
tim lindner
tlindner at macmess.org Bright
More information about the Coco
mailing list