.FillCircle()

back to FEHLCD

Description

This function is used to draw a circle with a specified center and radius. The cirlce will be filled with the color set by the most recent use of LCD.SetFontColor().

Syntax

.FillCircle( int x0, int y0, int r )

Parameters

x0: integer pixel position in x direction for center of circle (min 0, max 319)
y0: integer pixel position in y direction for center of circle (min 0, max 239)
r: integer number of pixels for radius of circle

Returns

None.

Examples

#include <FEHLCD.h>

int main(void)
{
    //Draw a filled circle in the middle of the screen
    LCD.SetFontColor(LIGHTGOLDENRODYELLOW);
    LCD.FillCircle(160,120,20);
}

Leave a Reply

Your email address will not be published. Required fields are marked *