UNPKG

454 BJavaScriptView Raw
1import { PolygonDrawer } from "./PolygonDrawer";
2import { TriangleDrawer } from "./TriangleDrawer";
3export function loadGenericPolygonShape(tsParticles) {
4 tsParticles.addShape("polygon", new PolygonDrawer());
5}
6export function loadTriangleShape(tsParticles) {
7 tsParticles.addShape("triangle", new TriangleDrawer());
8}
9export function loadPolygonShape(tsParticles) {
10 loadGenericPolygonShape(tsParticles);
11 loadTriangleShape(tsParticles);
12}