If rotation should be applied to particles, pointing them away from the center of the torus. Defaults to false.
Inner radius of a ring. Omit, or use 0, to have a circle.
Radius of circle, or outer radius of a ring. Note that this uses the full name of 'radius', where earlier versions of the library may have used 'r'.
X position of the center of the shape.
Y position of the center of the shape.
Inner radius of a ring. Use 0 to have a circle.
Radius of circle, or outer radius of a ring.
If rotation should be applied to particles.
X position of the center of the shape.
Y position of the center of the shape.
Assign a random position to the given particle. Rotation may optionally be applied; assigning any other properties, while allowed, would be improper.
Generated using TypeDoc
A class for spawning particles in a circle or ring. Can optionally apply rotation to particles so that they are aimed away from the center of the circle.
Example config: