sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
geometry.c

Explains how to draw a circles, rectangular and lines.

/*
* This example shows how to draw a circles, rectangular and lines.
*/
#include <lcd.h>
int main(void) {
LCD_SetFont(&font_8x16);
LCD_DisplayStringCenterLine(1, "Geometry Example");
LCD_DrawRect (250, 50, 50, 50, GUI_COLOR_GREEN);
LCD_DrawRectF (265, 65, 20, 20, GUI_COLOR_WHITE);
LCD_DrawLine (200, 100, 250, 200, GUI_COLOR_RED);
LCD_DrawRect ( 98, 98, 5, 5, GUI_COLOR_GREEN);
for (;;) {
}
return 0;
}