CRdraw_circle_n: Draws outline of a circle with limited precision.

View source: R/CRdraw_circle_n.R

CRdraw_circle_nR Documentation

Draws outline of a circle with limited precision.

Description

Draws outline of a cirlce to rendering target, circle is defined in a circle_list as centerx, centery and radius. Precision is set by user (n_points) and determines how many line segments the circle's outline consists of.

Usage

CRdraw_circle_n(graphics_list, circle_list, n_points, status = NULL)

Arguments

graphics_list

List containing pointers to window, renderer etc. created with CRopen.

circle_list

List defining circle, containing elements centerx, centery, and radius.

n_points

Positive integer setting precision of circle.

status

Optional list status with elements value and message to retrieve warnings and error messages.

Examples

    CRdraw_circle_n(mygraphics, list(centerx = 50, centery = 50, radius = 150), 7)

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.