Intrinsic-42 Line

Top  Previous  Next

42: Line(X, Y, color);

 

This intrinsic draws a straight line from the last point plotted (or moved to with the Move intrinsic) to the specified X and Y coordinates. "Color" is the same as for Point (41), but bits 8 through 15 are used to specify various patterns of dotted and dashed lines. Pixels are not drawn at locations corresponding to set bits. For example, to draw a line with widely space dots, "color" could be $7F01.

 

Note: the Line intrinsic is Last Point Inclusive. This means that a program draws every point between the starting and ending positions including the last pixel. This is different than the LineTo intrinsic that draws every pixel except the last pixel

 

(Controlling Screen Refresh can speed up this intrinsic. See the Console Refresh section for more information.)