DarkBASIC Professional Help File

DX11 DRAW CIRCLE

Draws a circle with the given diameter, having its centre at the provided coordinates.
The colour can optionally be set to a radial gradient with a center and edge colour.

Syntax

    DX11 DRAW CIRCLE x, y, diameter, colour, [edgeColour]

Parameters

    x

> Integer
> The center X coordinate of the circle.

    y

> Integer
> The center Y coordinate of the circle.

    diameter

> Dword
> The diameter (2x radius) of the circle.

    colour

> Dword
> The colour of the circle, or the center colour if providing an edge colour as well.

    [Optional] edgeColour

> Dword
> The colour to interpolate to towards the edge of the circle.

Returns

This function does not return a value.

See also

DIRECTDRAWING Functions Menu
DX11 Function Categories