# LINETO
> [HTML Version](lineto_pd.htm)
**//LINETO, x, y**
LINETO draws a line, using the current pen (see [SETPENEX](setpenex_pd.htm.md)), from the previous cursor position to the specified position. The parameter _x_ specifies the ending horizontal position and _y_ the ending vertical position, both using the current mapping units.
The current mapping unit is determined by the [SETMAPMODE](setmapmode_pd.htm.md) directive.