DrawingImmediate.Circle Synchronous

Draw an unfilled circle around a screen position. Radius sets its size; thickness controls the outline. Use it for a ring or circular outline without covering its interior.

Syntax
Luau
DrawingImmediate.Circle(
    position: Vector2,
    radius: number,
    color: Color3,
    opacity: number,
    numSides: number,
    thickness: number
) -> ()

Parameters

Function parameters
ParameterTypeDescription
positionVector2Center of the circle in screen pixels.
radiusnumberCircle radius in pixels.
colorColor3Color3 used for the primitive or text.
opacitynumberOpacity from 0 (invisible) to 1 (opaque).
numSidesnumberNumber of segments used to approximate the circle.
thicknessnumberStroke thickness for an unfilled primitive.

Returns

()

This function returns no values.

Usage notes

Immediate drawings last for one paint cycle. Call this function again from a GetPaint listener to keep the drawing visible; there is no object handle to update or remove.

Example

Example
Luau
local color = Color3.fromRGB(240, 150, 190)
local paint = DrawingImmediate.GetPaint()
local connection = paint:Connect(function()
    DrawingImmediate.Circle(Vector2.new(100, 100), 30, color, 1, 24, 2)
end)
task.wait(3)
connection:Disconnect() -- stop drawing this example
Kawaii documentation