Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

draw_rect

Draw a Rectangle


Description

Calculate the path of a rectangle in a grid and draw to screen.

Usage

draw_rect(yx1, yx2, text = "x", ...)

Arguments

yx1

upper-left (row, col) coordinate

yx2

lower-right (row, col) coordinate

text

character value drawn at coordinate

...

parameters that are passed to style(), including the foreground color fg, background color bg, and attribute attr

Value

NULL

See Also

Examples

draw_rect(c(5,5), c(9,9))

cursr

Cursor and Terminal Manipulation

v0.1.0
MIT + file LICENSE
Authors
Chris Mann
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.