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

draw_arc

Draw an Arc


Description

Calculate the path of an arc within a grid and print to screen.

Usage

draw_arc(yx, start, end, r = 1, n = 50, text = "x", ...)

Arguments

yx

center (row, col) coordinate of circle

start

starting angle in radians

end

ending angle in radians

r

radius of circle

n

number of points along curve to calculate

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_arc(yx=c(10,10), start=pi/2, end=pi, r=6)

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.