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

draw_bezier

Draw a Bezier Curve


Description

Calculate the path of a Bezier Curve with up to two control points in a grid and draw to screen.

Usage

draw_bezier(start, end, c1, c2 = NULL, n = 50, text = "x", ...)

Arguments

start

starting (row, col) coordinate

end

ending (row, col) coordinate

c1

coordinate of first control point

c2

coordinate of second control point

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_bezier(start=c(10,1), end=c(10,10), c1=c(1, 3))

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.