draw_ellipse_color(x1,y1,x2,y2,col1,col2,outline)

From ENIGMA
Jump to navigation Jump to search

Description

Draw an ellipse using a gradient of the colors col1 and col2 from (x1, y1) to (x2, y2). If outline is true the ellipse is not filled in.

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
col1 integer is the color at the center of the ellipse.
col2 integer is the color at the outer edges of the ellipse.
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_ellipse_color(100, 100, 132, 116, c_red, c_blue, false);