circle

fun ShapeRenderer.circle(position: Vector2, radius: Float)

See ShapeRenderer.circle. Estimates the number of segments needed for a smooth circle.

Parameters

position

supplies x and y parameters.

radius

radius of the rendered circle.


fun ShapeRenderer.circle(position: Vector2, radius: Float, segments: Int)

See ShapeRenderer.circle.

Parameters

position

supplies x and y parameters.

radius

radius of the rendered circle.

segments

amount of segments used to render the circle.