UNPKG

tsparticles

Version:

Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

7 lines (6 loc) 224 B
import { SquareDrawer } from "./SquareDrawer"; export async function loadSquareShape(engine) { const drawer = new SquareDrawer(); await engine.addShape("edge", drawer); await engine.addShape("square", drawer); }