powered by
Calculate the path of a Bezier Curve with up to two control points in a grid and draw to screen.
draw_bezier(start, end, c1, c2 = NULL, n = 50, text = "x", ...)
starting (row, col) coordinate
(row, col)
ending (row, col) coordinate
coordinate of first control point
coordinate of second control point
number of points along curve to calculate
character value drawn at coordinate
parameters that are passed to style(), including the foreground color fg, background color bg, and attribute attr
style()
fg
bg
attr
NULL
Other drawing functions: box_at(), draw_arc(), draw_circle(), draw_ellipse(), draw_fn(), draw_lerp(), draw_path(), draw_ray(), draw_rect(), draw_shape(), fill_circle(), fill_ellipse(), fill_rect(), fill_shape(), grid_at(), grid_mat(), hline_at(), hline(), vline_at(), vline()
box_at()
draw_arc()
draw_circle()
draw_ellipse()
draw_fn()
draw_lerp()
draw_path()
draw_ray()
draw_rect()
draw_shape()
fill_circle()
fill_ellipse()
fill_rect()
fill_shape()
grid_at()
grid_mat()
hline_at()
hline()
vline_at()
vline()
# NOT RUN { draw_bezier(start=c(10,1), end=c(10,10), c1=c(1, 3)) # }
Run the code above in your browser using DataLab