Draws an ellipse.


GML Code Example

draw_ellipse(x1, y1, x2, y2, outline);

Argument Description
x1 The x coordinate of the left of the ellipse.
y1 The y coordinate of the top of the ellipse.
x2 The x coordinate of the right of the ellipse.
y2 The y coordinate of the bottom of the ellipse.
outline Whether the ellipse is drawn filled (false) or as a one pixel wide outline (true).

Returns: N/A


With this function you can draw either an outline of an ellipse or a filled ellipse by defining a rectangular area that will then have the ellipse created to fit. You can define how precise the drawing is with the function draw_set_circle_precision.


GML Code Example

 draw_ellipse(100, 100, 300, 200, false);

This will draw a filled ellipse within the defined rectangular area.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here