WinEllipse Function (ROM Call 0xF)

wingraph.h

void WinEllipse (WINDOW *w, short x, short y, short a, short b);

Draws an ellipse to a window.

WinEllipse draws an ellipse with centre at (xy) and with semiaxes a and b to the window pointed to by w. The coordinates are relative to the topleft corner of the window. The ellipse will be clipped at the boundaries of the clipping area of the window. The interior of the ellipse remains intact (no fill). The ellipse will be drawn using the current window attribute (set using WinFill). Supported attributes are:

A_NORMALDraw a elipse
A_REVERSEErase a ellipse
A_XORXORs a ellipse into the destination

Note: Set a=b to draw a circle.


Uses: DrawClipEllipse, PortRestore, ROM Call 0x413
Used by: cmd_circle, cmd_pxlcircle, GD_Circle