Skip to content

Plugin Option: Emitter Shapes ​

emittersShapes provides additional emitter shape implementations for particle emitters.

Available shapes ​

PackageShape nameDescription
plugin-emitter-shape-canvascanvasCanvas-based emitter area
plugin-emitter-shape-circlecircleCircular emitter area
plugin-emitter-shape-pathpathSVG path-based emitter area
plugin-emitter-shape-polygonpolygonPolygon-shaped emitter area
plugin-emitter-shape-squaresquareSquare emitter area

Notes ​

  • Select a shape via emitters.shape.type.
  • Requires the @tsparticles/plugin-emitters package.
  • When the emitter draw option is enabled, the selected shape is rendered on the canvas behind the particles. It is disabled by default, so set emitters.draw: true to make the emitter visible.
  • Emitters of every shape can be dragged with the mouse when emitters.draggable is enabled.

Source reference ​