HTBasic Help
×
Menu
Index

DRAW

Draws a line to an x,y location.
 
 DRAW x-position, y-position
 
 
Usage:
DRAW 50,50
DRAW 10,75
DRAW Xx,Yy
 
 
Example:      DRAW.BAS
 
Description:
A line is drawn from the current position to the specified coordinates using the current line type and pen number. The DRAW statement can be used in conjunction with the MOVE statement. DRAW always begins with the "pen down" and ends with the pen down. MOVE always lifts the pen before moving to the specified new position. See also PLOT which incorporates pen control into one statement through its syntax. The x-position and y-position arguments express a coordinate in the current SHOW or WINDOW units.
 
If the arguments of a DRAW statement specify a destination point which is outside the clipping rectangle, a theoretical draw to that point is executed. Only that portion of the vector which lies inside the clipping rectangle is drawn. The portion of the vector which lies outside is clipped at the edge of the clipping rectangle.
 
A DRAW to the current position draws a point. The PIVOT statement affects the DRAW statement.
 
See Also: