n-star
n-star()
Draws a n-pointed star.
Styling
Root: nstar
set-style(n-star: (radius: 0.65))
n-star((0, 0), 5)
// An 8-pointed star, rotated
n-star((1.5, 0), 8, angle: 11.25deg)
// A 6-pointed star showing its inner hexagon
n-star((3, 0), 6, show-inner: true)
origin:
Coordinate to draw the star’s center at.
The radius (if of type ratio, relative to the outer radius) of the star’s inner points of the star’s inner points.
If true, also draws the inner polygon connecting the star’s inner points.