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