# DrawEllipse

## Description

Draws a 2D ellipse centered on the coordinates given with a chosen color or gradient. 2D shapes appear above all other drawing except the Print command and can be used with the GetImage function to create new images. The XY coordinates are in screen coordinates so are not affected by the SetViewOffset command.

## Definition

DrawEllipse( x, y, radiusx, radiusy, color1, color2, filled )

void agk::DrawEllipse( float x, float y, float radiusx, float radiusy, UINT color1, UINT color2, int filled )

## Parameters

- x - The X component of the center of the ellipse.
- y - The Y component of the center of the ellipse.
- radiusx - The radius of the ellipse in the X direction.
- radiusy - The radius of the ellipse in the Y direction.
- color1 - The color at the top of the ellipse.
- color2 - The color at the bottom of the ellipse.
- filled - 1=filled, 0=empty.