DrawingImmediate. FilledCircle Synchronous
Draw a solid circle centered at the supplied screen position. Use it for a circular marker or status indicator.
Luau
DrawingImmediate.FilledCircle(
position: Vector2,
radius: number,
color: Color3,
opacity: number,
numSides: number
) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
position | Vector2 | Center of the circle in screen pixels. |
radius | number | Circle radius in pixels. |
color | Color3 | Color3 used for the primitive or text. |
opacity | number | Opacity from 0 (invisible) to 1 (opaque). |
numSides | number | Number 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
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