draw_ellipse_perfect(x1,y1,x2,y2,outline)

From ENIGMA
Jump to navigation Jump to search

Description

Draws a perfect ellipse in the given region. This function doesn't take precision into account.

Parameters

Parameter Data Type Description
x1 float x coordinate of the top left corner of the ellipse
y1 float y coordinate
x2 float x coordinate of the bottom right corner of the ellipse
y2 float y coordinate
outline boolean indicates whether to only draw the outline (true) or fill the ellipse (false).

Return Values

void: This function does not return anything.

Example Call

// example usage of the function
draw_set_color(c_red);
draw_ellipse(100, 100, 132, 116, false);