Changes

Locomotive BASIC

9 bytes added, 22:58, 25 January 2008
/* DRAW x,y [,[i1][,i2]] */ Reworded slightly to clarify
: 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.
==== DRAW x,y [,i1 | ,[i1][,i2]] ====
: Draws a line from the current cursor position to position x,y. i1 specifies colour, i2 is the logical colourdrawing style.
<pre>
</pre>
: Example:
<precode>: CLG 2: DRAW 500,400,0 - :REM draws a line from 0,0 to 500,400</precode>
==== DRAWR xr, yr, [[i1][,i2]] ====
13
edits