Pass:circle

Draws a circle.

Pass:circle(transform, style, angle1, angle2, segments)

Arguments

NameTypeDefaultDescription
transformMat4 The transform of the circle. Can also be provided as position, radius, and rotation, using a mix of Vectors or numbers.
styleDrawStyle'fill' Whether the circle should be filled or outlined.
angle1number0 The angle of the beginning of the arc.
angle2number2 * math.pi angle of the end of the arc.
segmentsnumber64 The number of segments to render.

Returns

Nothing

Notes

The local origin of the circle is in its center, and the local z axis goes through the center.

See also