Technology
 

Line(

From TI-BASIC Wiki - The free TI-BASIC encyclopedia

(84) :Line(X1, Y1, X2, Y2)
(89) :Line X1, Y1, X2, Y2

When used in this way, this command will draw a line from the first set of X,Y coordinated to the other set.

(84) :Line(X1, Y1, X2, Y2, 0)
(89) :Line X1, Y1, X2, Y2, 0

When used in this way, it will erase in a line from the first set of X,Y coordinated to the other set.

[edit] Location

  • DRAW (2nd PRGM)
  • DRAW
  • 2:Line(

[edit] Example

:ClrDraw
:0Xmin
:94→Xmax
:0→Ymax
:-62→Ymin
:Line(0,0,94,-62)
:Line(94,0,0,-62)

After clearing the graph screen and setting the correct dimensions, this program will draw a cross (X) that crosses the entire screen from corner to corner.