graphic function ttg_ellipse()
ttg_ellipse() draws an ellipse into a rectangle. If this rectangle is a square, you get a circle. Specify the pen ttg_pen() to draw the ellipse and the brush ttg_brush() to fill it.
Parameters:
1: X coord upper left corner of rectangle2: Y coord upper left corner of rectangle
3: X coord lower right corner of rectangle
4: Y coord lower right corner of rectangle
***************************** | |
* Tool&Task example program * | |
* ttg_ellipse() * | |
* last compile: 13.07.2022 * | |
***************************** |
ttg_new() | |
ttg_createbmp(148,148, FORMCOLOR) | |
ttg_pen(0, 4, BLUE) | |
ttg_brushcolor(WHITE) | |
ttg_ellipse(10, 10, 138, 138) |
&& its a square |
ttg_brushcolor(RED) |
&& brush is red |
ttg_pencolor(RED) |
&& pen is also red |
ttg_ellipse(40, 50, 108, 98) |
&& its a rectangle |
ttg_pen() |
&& reset the pen |
ttg_execute() | |
ttg_display() |