star

fun star(circle: Circle, points: Int = 5, rotation: Measure<Angle> = 0 * degrees, innerCircle: Circle): Polygon?

Creates a Star with n points that is described by an outer and inner Circle, which its concave and convex points respectively.

Return

a star shaped polygon

Parameters

circle

to inscribe the polygon in

points

the star should have

rotation

of the star's first point around the circle

innerCircle

defining the radius of the inner points


fun star(circle: Circle, points: Int = 5, rotation: Measure<Angle> = 0 * degrees, innerCircle: Circle, pointRoundness: Float): Path?

Creates a rounded star.

Return

a star shaped path

Parameters

circle

to inscribe the polygon in

points

the star should have

rotation

of the star's first point around the circle

innerCircle

defining the radius of the inner points

pointRoundness

defining how rounded the points should be

See also


fun star(circle: Circle, points: Int = 5, rotation: Measure<Angle> = 0 * degrees, innerCircleRatio: Float = starDefaultInnerCircleRatio): Polygon?

Creates a Star with n points that is described by an outer and inner Circle, which its concave and convex points respectively.

Return

a star shaped polygon

Parameters

circle

to inscribe the polygon in

points

the star should have

rotation

of the star's first point around the circle

innerCircleRatio

the length of the inner circle's radius (defines inner points) relative to the outer


fun star(circle: Circle, points: Int = 5, rotation: Measure<Angle> = 0 * degrees, innerCircleRatio: Float = starDefaultInnerCircleRatio, pointRoundness: Float): Path?

Creates a rounded star.

Return

a star shaped path

Parameters

circle

to inscribe the polygon in

points

the star should have

rotation

of the star's first point around the circle

innerCircleRatio

the length of the inner circle's radius (defines inner points) relative to the outer

pointRoundness

defining how rounded the points should be

See also