fill_circle {cursr}R Documentation

Draw a Filled-In Circle

Description

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

Usage

fill_circle(yx, r = 1, n = 50, text = "x", ...)

Arguments

yx

center (row, col) coordinate

r

radius of the circle in grid points

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

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_ellipse(), fill_rect(), fill_shape(), grid_at(), grid_mat(), hline_at(), hline(), vline_at(), vline()

Examples

draw_circle(yx=c(10,10), r=5)


[Package cursr version 0.1.0 Index]