DrawingImmediate. Circle Synchronous
Draw an unfilled ring around a screen point. Use the radius for its size and thickness for the visible outline.
Luau
DrawingImmediate.Circle(
position: Vector2,
radius: number,
color: Color3,
opacity: number,
numSides: number,
thickness: number
) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
position | Vector2 | Center of the circle in screen pixels. |
radius | number | Radius in pixels. |
color | Color3 | Color3 of the primitive or text. |
opacity | number | Opacity from 0 (invisible) to 1 (opaque). |
numSides | number | Number of sides used to approximate the circle. |
thickness | number | Stroke 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
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)