powered by
Calculate the path of an ellipse within a grid and draw to screen.
fill_ellipse(yx = c(0, 0), rx = 1, ry = 1, n = 50, text = "x", ...)
(row, col) coordinate of the center of the ellipse
(row, col)
radius along the x-axis in grid points
radius along the y-axis in grid points
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_bezier(), draw_circle(), draw_ellipse(), draw_fn(), draw_lerp(), draw_path(), draw_ray(), draw_rect(), draw_shape(), fill_circle(), fill_rect(), fill_shape(), grid_at(), grid_mat(), hline_at(), hline(), vline_at(), vline()
box_at()
draw_arc()
draw_bezier()
draw_circle()
draw_ellipse()
draw_fn()
draw_lerp()
draw_path()
draw_ray()
draw_rect()
draw_shape()
fill_circle()
fill_rect()
fill_shape()
grid_at()
grid_mat()
hline_at()
hline()
vline_at()
vline()
# NOT RUN { draw_ellipse(yx=c(10,10), rx=8, ry = 4) # }
Run the code above in your browser using DataLab