Yuari
Documentation
Docs/DrawingImmediate/DrawingImmediate.Circle

DrawingImmediate.Circle

Draws circles.

Syntax

DrawingImmediate.Circle(pos: Vector2, radius: number, color: Color3, thickness?: number, segments?: any) -> nil

Parameters

ParameterTypeDescription
posVector2The pos value used by the call.
radiusnumberThe radius value used by the call.
colorColor3The color value used by the call.
thickness?numberThe thickness value used by the call.
segments?anyThe segments value used by the call.

Returns

TypeDescription
nilThis function does not return a value.

Description

DrawingImmediate.Circle is part of the DrawingImmediate library. Immediate drawing runs inside a paint callback registered with DrawingImmediate.GetPaint(); primitives are emitted for the current frame only.

The operation is performed immediately using the arguments supplied at the call site.

The aliases FilledCircle(pos, radius, color, segments?) resolve to the same implementation.

Example

-- inside a DrawingImmediate.GetPaint():Connect callback
DrawingImmediate.Circle(Vector2.new(100, 100), 40, Color3.new(0, 1, 0), 2)
DrawingImmediate.FilledCircle(Vector2.new(200, 100), 30, Color3.new(0, 0.5, 1))

Notes

  • Aliases: FilledCircle(pos, radius, color, segments?).
  • Draw calls must run inside a callback registered with DrawingImmediate.GetPaint().