← Documentation Home

DrawCircle

Category: Images and Rendering

Back to System Functions


Signature

DrawCircle(x As Integer, y As Integer, radius As Integer, segments As Integer)

Returns

Void

Description

Queues a one-pixel circle outline centered at (x, y) using the current draw color. The outline connects the requested number of evenly spaced segments, so low values can be used to draw regular polygons and higher values make the outline smoother.

The radius must be positive and segments must be at least 3. Segment counts above 4096 are limited to 4096.

Example

SetDrawColor(80, 200, 255) DrawCircle(320, 240, 64, 32)