13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LINE statementFunctionSyntaxRemarksLINE draws a straight line or an optionally filled box.LINE [(xl,yl)] - (x2,y2) [, [color] [,B[F]] [,pattern]](xl,yl) and (x2,y2) are the coordinates of two points on the graphicsscreen and can be specified in either absolute or relative form. (SeeChapter 4 for more information about absolute and relative coordinates.)color is an integer expression describing the color in whichthe line or box should be drawn. pattern is an integer mask controllinghow the line or box is drawn.To draw a line to point (x,y) from the LPR in the default color,typeLINE -(x,y)To draw that same line in a different color, typeLINE -(x,y), 2To draw a line from point (xl,yl) to point (x2,y2), typeLINE (xl,yl) - (x2,y2)To draw a box with upper left comer (xl,yl) and lower rightcomer (x2,y2), typeLINE (xl,yl) - (x2,y2)"BTo fill a box with attribute 2, typeLINE (xl,yl) - (x2,y2),2,BFSee AlsoTo draw a nonsolid line, include the pattern argument. For example,to create a dotted line. use a pattern value of &HAAAA (10101010 1010 1010 binary). Note that pattern does not affect filledboxes.LINE (xl,yl) - (x2,y2)",maskwordAfter a LINE statement, the LPR becomes the second of the twopoints in the LINE statement.FILL<strong>Turbo</strong> <strong>Basic</strong> Reference Directory 247

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!