rect

abstract fun rect(x: Float, y: Float, width: Float, height: Float, color: Color, topLeftRadius: Float, topRightRadius: Float, bottomLeftRadius: Float, bottomRightRadius: Float)

draw a rectangle to the screen, per the given parameters.

If the radii are 0, this will just draw a normal rectangle. If they are not 0, it will draw a rounded rectangle.


open fun rect(x: Float, y: Float, width: Float, height: Float, color: Color, radius: Float = 0.0f)
open fun rect(x: Float, y: Float, width: Float, height: Float, color: Color, radii: FloatArray)

See also