HomeManualTopicsTypesSymbols

std::draw_line

draws a horizontal or vertical line

Parameters

screen
some kind of screen
x1
x-coordinate of the start of the line
y1
y-coordinate of the start of the line
x2
x-coordinate of the end of the line
y2
y-coordinate of the end of the line

Result

screen
the updated screen

Description

The line is drawn using the appropriate unicode graphics characters and uses the current text colour.

Either x1 and x2 or y1 and y2 must be equal.

Example

draw_line &screen 1 1 10 1

Topic

Terminal

Implemented by

std_types::screen draws a horizontal or vertical line