Syntax
void GEllipse( int y, int x, int radiusY, int radiusX, int color, xBool filled );
Arguments
y, x give the center in pixels, vertical coordinate first.
radiusY, radiusX give the vertical and horizontal radii in pixels.
color is the RGB color returned by GMakeColor().
filled selects the interior and outline with T, or just the outline with F.
Return value
No return value.
Description
Draws a circle when the radii are equal. A zero radius flattens the ellipse to a line, and a negative radius skips the drawing. The current clipping rectangle limits the affected pixels.
Example
#include "xdev-wtui.h"
int main( void )
{
GEllipse( 100, 160, 60, 60, GMakeColor( 0, 160, 0 ), T );
GEllipse( 100, 160, 40, 120, GMakeColor( 200, 0, 0 ), F );
Inkey( 0, NIL );
return 0;
}