Changes

Jump to: navigation, search

Locomotive BASIC

1,052 bytes added, 20:29, 19 September 2012
/* ORIGIN */
: Opens the specified data file for writing. It writes an ASCII file. (To close writing use the command closein.)
==== <code>ORIGINx,y[,l,r,t,b]</code> ====: [The command defines the origin ('world reference point') for the graphics coordinate system.Normally the reference origin is in the left, bottom corner of the default screen and has 0,0.So the most left coordinate value could be by default 639 and the most top value 399.]Independent from the actual modus (2, 1 or 0) the range for the x coordinate are always 640 points and for the y coordinate 400 points. In theory you are able to address 256,000 pixel but only 128,000 are visible due to the maximal resolution of the hardware.: <code>x,y</code> are the the new coordinates for the 'world reference '.: <code>l,r,t,b</code> are optional and set the borders for the new graphical window (works in the same way like the <code>WINDOW</code> command for a text window). l,r,t,b means left, right, tob and bottom coordinates.: If a new graphical window (borders) is defined every point or drawn line won't be plotted (clipped internally).  : Example (the line drawn will be cutted):<pre>ORIGIN 320,200,250,450,100,300DRAW 0,200</pre>
==== <code>OUT add,i</code> ====
205
edits