draw_circle_color(x,y,r,c1,c2,outline)

Note: This function must be placed in the Draw Event for it to work correctly.

 

x = Horizontal position in pixels.

y = Vertical position in pixels.

r = The radius that the circle will be drawn to.

c1 = Colour in the middle .

c2 = The colour out the outer boundary.

outline = Whether or not the circle will be drawn as an outline. If it is true, the circle will be an outline of a circle, if it is false, it will be a full circle.

 

Example:

//Draw an circle with a white center gradienting into black.

draw_circle_color(x,y,40,c_white,c_black,0);

 

Draws a circle at x,y with a radius of r (Remember that the radius is half of the circles width). c1 is the colour in the middle, c2 around the edge.

 

draw_circle

 

Yibbon(.com.au) - Revision #1