Skip to content
party.js logoparty.js logo

ReferenceParticlesInterface

StarShape

Draws a particle as a regular, pointed star.

A regular, pointed star, centered at (0, 0), with a specified number of points.

innerRadiusoptionalnumberdefault0.382

How far the inner corners between the points are from the center, relative to the points themselves, from just above 0 (thin, spiky points) to 1 (no points at all). The default gives the proportions of a classic five-pointed star.

pointsoptionalnumberdefault5

The number of points the star should have, which is expected to be an integer >= 3.

type"star"