polygon
fun polygon(center: Vec2f, sides: Int, scaleX: Float, scaleY: Float = scaleX, rotation: Angle = 0.radians, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.POINTY else JoinType.NONE, color: Float = colorBits)
Draws a regular polygon by drawing lines between the vertices
Parameters
center
the center point
sides
the number of sides
scaleX
the horizontal scale
scaleY
the vertical scale
rotation
the rotation
thickness
the thickness of the line in world units
joinType
the type of join, see JoinType
color
the packed color to draw the outline. See Color.toFloatBits.
fun polygon(x: Float, y: Float, sides: Int, scaleX: Float, scaleY: Float = scaleX, rotation: Angle = 0.radians, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.POINTY else JoinType.NONE, color: Float = colorBits)
Draws a regular polygon by drawing lines between the vertices
Parameters
x
the x-coord of the center point
y
the y-coord of the center point
sides
the number of sides
scaleX
the horizontal scale
scaleY
the vertical scale
rotation
the rotation
thickness
the thickness of the line in world units
joinType
the type of join, see JoinType
color
the packed color to draw the outline. See Color.toFloatBits.