filledEllipse

fun filledEllipse(center: Vec2f, radius: Vec2f, rotation: Angle = 0.radians, innerColor: Float = colorBits, outerColor: Float = colorBits)

Draws a filled 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

center

the center point

radius

the horizontal and vertical radii

rotation

the rotation of the ellipse

innerColor

the packed color of the center of the ellipse. See Color.toFloatBits.

outerColor

the packed color of the perimeter of the ellipse. See Color.toFloatBits


fun filledEllipse(x: Float, y: Float, rx: Float, ry: Float = rx, rotation: Angle = 0.radians, innerColor: Float = colorBits, outerColor: Float = colorBits)

Draws a filled 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

innerColor

the packed color of the center of the ellipse. See Color.toFloatBits.

outerColor

the packed color of the perimeter of the ellipse. See Color.toFloatBits