@tsparticles/shape-infinity
TypeScript icon, indicating that this package has built-in type declarations

3.9.1 • Public • Published

banner

tsParticles Infinity Shape

jsDelivr npmjs npmjs GitHub Sponsors

tsParticles additional infinity shape.

How to use it

CDN / Vanilla JS / jQuery

The CDN/Vanilla version JS has one required file in vanilla configuration:

Including the tsparticles.shape.infinity.min.js file will export the function to load the shape:

loadInfinityShape

Usage

Once the scripts are loaded you can set up tsParticles and the shape like this:

(async () => {
  await loadInfinityShape(tsParticles);

  await tsParticles.load({
    id: "tsparticles",
    options: {
      /* options */
      /* here you can use particles.shape.type: "infinity" */
    },
  });
})();

ESM / CommonJS

This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:

$ npm install @tsparticles/shape-infinity

or

$ yarn add @tsparticles/shape-infinity

Then you need to import it in the app, like this:

const { tsParticles } = require("@tsparticles/engine");
const { loadInfinityShape } = require("@tsparticles/shape-infinity");

(async () => {
  await loadInfinityShape(tsParticles);
})();

or

import { tsParticles } from "@tsparticles/engine";
import { loadInfinityShape } from "@tsparticles/shape-infinity";

(async () => {
  await loadInfinityShape(tsParticles);
})();

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.6.0-beta.10beta
3.9.1747latest

Version History

VersionDownloads (Last 7 Days)Published
3.9.1747
3.9.089
3.8.11,113
3.8.02
3.7.11,127
3.7.00
3.6.0310
3.6.0-beta.10
3.6.0-beta.00
3.5.0517
3.4.0135

Package Sidebar

Install

npm i @tsparticles/shape-infinity

Weekly Downloads

4,040

Version

3.9.1

License

MIT

Unpacked Size

294 kB

Total Files

25

Last publish

Collaborators

  • ar3s
  • matteobruni