rect

fun ShapeRenderer.rect(position: Vector2, width: Float, height: Float)

See ShapeRenderer.rect.

Parameters

position

supplies x and y parameters.

width

width of the rendered rectangle.

height

height of the rendered rectangle.


fun ShapeRenderer.rect(position: Vector2, size: Vector2)

See ShapeRenderer.rect.

Parameters

position

supplies x and y parameters.

size

supplies width and height parameters.