meta data for this page
  •  

Star


A two dimensional shape made from straight rays extending from a center. All vertices are the same distance from the center.

Note: See the paper on The Inner Radius of n/m Stars by Julian D. A. Wiseman for more details.

Defaults:

  • vertices : 5
  • density : 2
  • outerRadius : 1
  • innerRadius : 0
  • startAngle : 0
  • center : [0, 0, 0]
let star1 = star({vertices: 8, outerRadius: 10}) // star with 8/2 density
let star2 = star({vertices: 12, outerRadius: 40, innerRadius: 20}) // star with given radius