HomeManualTopicsTypesSymbols
std::draw_rectangle
draws a rectangle
Parameters
- screen
- some kind of screen
- x1
- x-coordinate of one corner of the rectangle
- y1
- y-coordinate of one corner of the rectangle
- x2
- x-coordinate of the opposite corner of the rectangle
- y2
- y-coordinate of the opposite corner of the rectangle
Result
- screen
- the updated screen
Description
The rectangle is drawn using the appropriate unicode graphics characters and uses the current text colour.
Example
draw_rectangle &screen 1 1 10 10
Topic
Terminal
Implemented by