draw_circle

Draws a circle.

Syntax:

GML Code Example

draw_circle(x, y, r, outline);


Argument Description
x The x coordinate of the center of the circle.
y The y coordinate of the center of the circle.
r The circle's radius (length from its center to its edge)
outline Whether the circle is drawn filled (false) or as a one pixel wide outline (true).


Returns: N/A


Description

With this function you can draw either an outline of a circle or a filled circle. You can define how precise the drawing is with the function draw_set_circle_precision.


Example:

GML Code Example

draw_set_colour(c_white);
 draw_circle(100, 100, 50, true);
 

This will draw a one pixel wide white circle outline with a radius of 50 pixels.





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