tsparticles
Version:
Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.
24 lines (23 loc) • 798 B
TypeScript
import { Container } from "./Container";
import type { IMouseData } from "../Interfaces/IMouseData";
import type { IRgb } from "../Interfaces/IRgb";
import { Particle } from "./Particle";
export declare class Particles {
get count(): number;
array: Particle[];
pushing?: boolean;
lineLinkedColor?: IRgb | string | null;
private readonly container;
private interactionsEnabled;
constructor(container: Container);
init(): void;
redraw(): void;
removeAt(index: number, quantity?: number): void;
remove(particle: Particle): void;
update(delta: number): void;
draw(delta: number): void;
clear(): void;
push(nb: number, mousePosition?: IMouseData): void;
addParticle(particle: Particle): void;
removeQuantity(quantity: number): void;
}