Draw Line

\i D L word::end_x word::end_y

Parameter Type Range Description
end_x word 0 ... display width - 1 horizontal ending position of the line
end_y word 0 ... display height - 1 vertical ending position of the line

Draws a line with the currently selected Line Style (see Set Line Style) starting from the current cursor position to the specified ending point.

Note

Response: [ACK]

Example

\iDL\D799\D479

Draws a line from the top left corner to the lower right corner, assuming the cursor position was 0/0 before this command was issued and the display has a resolution of 800x480 pixels.

See also:

Draw Rectangle
Draw Circle
Get Cursor Position
Set Foreground Color
Set Inverse Mode
Set Line Style