Changes

Locomotive BASIC

7 bytes removed, 10:09, 23 October 2012
/* DRAW x,y[,i1 | ,[i1],i2] */
: Creates array <code>a</code> with single or multiple dimensions. You may optionally specify integer (<code>%</code>), real (<code>!</code>) or string (<code>$</code>) type otherwise it defaults to the current type set for the first letter of the array name. <code>d1</code> is size of first dimension-1, <code>d2</code> is size of second dimension-1 and so on. <code>DIM x(10)</code> will create an array with 11 elements, <code>x(0)</code> is the first element, <code>x(10)</code> is the eleventh and last. You can specify as many dimensions as will fit on one 255 character line, which is a maximum of 125. Trying to create an array that already exists will generate an <code>Array already dimensioned</code> error. If an array is not specified by <code>DIM</code> before being accessed, each dimension value defaults to 10. The maximum dimensions that can be created this way is three.
==== <code>DRAW x,y[,i1 | ,[i1][,i2]]</code> ====
: Draws a line from the current cursor position to position x,y. i1 specifies colour, i2 is the drawing style.
<pre>: 4 drawing styles:i2 = 0 normal colour i2 = 2 AND 1 XOR colouri2 = 1 XOR 2 AND colour i2 = 3 OR colour</pre>
Example:
205
edits