Logo
MSP Graphics Library
Circle_api

Functions

void Graphics_drawCircle (const Graphics_Context *context, int32_t x, int32_t y, int32_t radius)
 
void Graphics_fillCircle (const Graphics_Context *context, int32_t x, int32_t y, int32_t radius)
 

Detailed Description

Function Documentation

void Graphics_drawCircle ( const Graphics_Context context,
int32_t  x,
int32_t  y,
int32_t  radius 
)

Draws a circle.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the center of the circle.
yis the Y coordinate of the center of the circle.
radiusis the radius of the circle.

This function draws a circle, utilizing the Bresenham circle drawing algorithm. The extent of the circle is from x - radius to x + radius and y - radius to y + radius, inclusive.

Returns
None.
void Graphics_fillCircle ( const Graphics_Context context,
int32_t  x,
int32_t  y,
int32_t  radius 
)

Draws a filled circle.

Parameters
contextis a pointer to the drawing context to use.
xis the X coordinate of the center of the circle.
yis the Y coordinate of the center of the circle.
radiusis the radius of the circle.

This function draws a filled circle, utilizing the Bresenham circle drawing algorithm. The extent of the circle is from x - radius to x + radius and y - radius to y + radius, inclusive.

Returns
None.