DrawingImmediate.FilledCircle Synchronous

Draw a solid circle centered at the supplied screen position. Use it for a circular marker or status indicator.

Syntax
Luau
DrawingImmediate.FilledCircle(
    position: Vector2,
    radius: number,
    color: Color3,
    opacity: number,
    numSides: 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.

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.FilledCircle(Vector2.new(100, 100), 30, color, 0.8, 24)
end)
task.wait(3)
connection:Disconnect() -- stop drawing this example
Kawaii documentation