ellipse

fun ellipse(center: Vec2f, rx: Float, ry: Float = rx, rotation: Angle = 0.radians, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.SMOOTH else JoinType.NONE, color: Float = colorBits)

Draws an ellipse around the specified point with the given radius's.

Parameters

center

the center point

rx

the horizontal radius

ry

the vertical radius

rotation

the rotation of the ellipse

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 ellipse(center: Vec2f, radius: Vec2f, rotation: Angle = 0.radians, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.SMOOTH else JoinType.NONE, color: Float = colorBits)

Draws an ellipse around the specified point with the given radius's.

Parameters

center

the center point

radius

the horizontal and vertical radii

rotation

the rotation of the ellipse

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 ellipse(x: Float, y: Float, rx: Float, ry: Float = rx, rotation: Angle = 0.radians, thickness: Int = this.thickness, joinType: JoinType = if (isJoinNecessary(thickness)) JoinType.SMOOTH else JoinType.NONE, color: Float = colorBits)

Draws an ellipse as a stretched regular polygon estimating the number of sides required (see estimateSidesRequired) to appear smooth enough based on the pixel size that has been set.

Parameters

x

the x-coord of the center point

y

the y-coord of the center point

rx

the horizontal radius

ry

the vertical radius

rotation

the rotation of the ellipse

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.