Display Simple Graphics library  v0.5
Library containing shape, text, and bitmap drawing functions called by various display drivers
Functions
drawCircle.c File Reference
#include "simplegfx.h"

Functions

void drawCircle (screen_t *dev, int x0, int y0, int r, int color)
 Draws a circle in the specified color. More...
 

Function Documentation

◆ drawCircle()

void drawCircle ( screen_t dev,
int  x0,
int  y0,
int  r,
int  color 
)

Draws a circle in the specified color.

Parameters
devPointer to the display's device structure returned by the initialization function.
x0Horizontal coordinate of the center of the circle, counted from the left side of the screen.
y0Vertical coordinate of the center of the circle, counted down from the top of the screen.
rRadius of the circle.
colorColor of the shape, in the format native to the display.