DrawingImmediate.Circle Synchronous

Draw an unfilled ring around a screen point. Use the radius for its size and thickness for the visible outline.

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.
radiusnumberRadius in pixels.
colorColor3Color3 of the primitive or text.
opacitynumberOpacity from 0 (invisible) to 1 (opaque).
numSidesnumberNumber of sides used to approximate the circle.
thicknessnumberStroke width in screen pixels.

Returns

()

No values.

Usage notes

Immediate primitives last for one paint cycle. Submit the call again from a GetPaint listener to keep it visible; there is no object handle to update or remove.

Example

Example
Luau
local paint = DrawingImmediate.GetPaint()
local connection = paint:Connect(function()
    DrawingImmediate.Circle(Vector2.new(100, 100), 30, Color3.fromRGB(240, 150, 190), 1, 32, 2)
end)
task.delay(3, function() connection:Disconnect() end)
Kawaii documentation